better debug printouts

master
Kostanjevec 2022-06-14 02:31:35 +02:00
parent e2da724551
commit 7c88e767d3
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@ -121,7 +121,7 @@ def create_app(test_config=None):
show_card = dbsession.query(Card).get(show_card_id)
if not show_card:
print("SHOWWWWWWW")
print("show_card missing")
return render_template("error/no_cards_in_collection.html")
#raise Exception("Ne najdem naslednje karte")

View File

@ -43,7 +43,7 @@ def index():
deck = probabilistic_deck_generator(user_id, 5, 5)
cards_by_id = get_deck(deck)
if cards_by_id == None:
print("DECK IS NONE")
print("Deck is none")
return render_template(index())
else:
number_of_cards = len(cards_by_id.split(","))