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 create_db import Deck, Card, get_session
|
||||||
|
|
||||||
from deck import get_deck, probabilistic_deck_generator
|
from deck import get_deck, probabilistic_deck_generator
|
||||||
|
from settings import get_settings
|
||||||
from auth import login
|
from auth import login
|
||||||
|
|
||||||
bp = Blueprint('menu', __name__, url_prefix='/menu')
|
bp = Blueprint('menu', __name__, url_prefix='/menu')
|
||||||
|
@ -65,11 +66,13 @@ def index():
|
||||||
elif action == "upload":
|
elif action == "upload":
|
||||||
return redirect(url_for("upload.index"))
|
return redirect(url_for("upload.index"))
|
||||||
elif action == "settings":
|
elif action == "settings":
|
||||||
pass
|
|
||||||
|
settings = get_settings(user_id)
|
||||||
|
return render_template("settings.html", username=username, user_id=user_id)
|
||||||
elif action == "instructions":
|
elif action == "instructions":
|
||||||
pass
|
return render_template("instructions.html", username=username, user_id=user_id)
|
||||||
elif action == "about":
|
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)
|
return render_template("menu/menu.html", username=username, deck_status=deck_status)
|
||||||
|
|
Loading…
Reference in New Issue