links for settings, instructions and about
parent
d428645504
commit
e31c3e91e6
9
menu.py
9
menu.py
|
@ -6,6 +6,7 @@ from config import CONFIG
|
|||
from create_db import Deck, Card, get_session
|
||||
|
||||
from deck import get_deck, probabilistic_deck_generator
|
||||
from settings import get_settings
|
||||
from auth import login
|
||||
|
||||
bp = Blueprint('menu', __name__, url_prefix='/menu')
|
||||
|
@ -65,11 +66,13 @@ def index():
|
|||
elif action == "upload":
|
||||
return redirect(url_for("upload.index"))
|
||||
elif action == "settings":
|
||||
pass
|
||||
|
||||
settings = get_settings(user_id)
|
||||
return render_template("settings.html", username=username, user_id=user_id)
|
||||
elif action == "instructions":
|
||||
pass
|
||||
return render_template("instructions.html", username=username, user_id=user_id)
|
||||
elif action == "about":
|
||||
pass
|
||||
return render_template("about.html", username=username, user_id=user_id)
|
||||
|
||||
|
||||
return render_template("menu/menu.html", username=username, deck_status=deck_status)
|
||||
|
|
Loading…
Reference in New Issue