deck generator gets settings from db, shared parameter still missing tho
parent
a2d5839640
commit
9f30b9f330
3
menu.py
3
menu.py
|
@ -46,7 +46,8 @@ def index():
|
||||||
return render_template("error/no_cards_in_collection.html", username=username)
|
return render_template("error/no_cards_in_collection.html", username=username)
|
||||||
|
|
||||||
#ustvari novi vnos v Deck
|
#ustvari novi vnos v Deck
|
||||||
deck = probabilistic_deck_generator(user_id, 5, 5)
|
user_settings = get_settings(user_id)
|
||||||
|
deck = probabilistic_deck_generator(user_id, int(user_settings['max_new']), int(user_settings['max_due']))
|
||||||
cards_by_id = get_deck(deck)
|
cards_by_id = get_deck(deck)
|
||||||
if cards_by_id == None:
|
if cards_by_id == None:
|
||||||
print("Deck is none")
|
print("Deck is none")
|
||||||
|
|
Loading…
Reference in New Issue