deck generator gets settings from db, shared parameter still missing tho

master
Kostanjevec 2022-06-23 16:29:31 +02:00
parent a2d5839640
commit 9f30b9f330
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ def index():
return render_template("error/no_cards_in_collection.html", username=username)
#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)
if cards_by_id == None:
print("Deck is none")