some print statemets for debugging

master
janko 2022-11-01 10:55:07 +01:00
parent 774d269d91
commit f8d7427f1b
1 changed files with 5 additions and 0 deletions

View File

@ -246,11 +246,16 @@ def sr_session():
print("remaining_new_today: ", remaining_new_today)
print("remaining_due_today: ", remaining_due_today)
print("list_of_due_cards_by_ids: ", list_of_due_cards_by_ids(user_id))
print("list_of_new_cards_by_ids: ", list_of_new_cards_by_ids(user_id))
#checks if there are any new/due cards left for today and gets the next one.
#max can be more than all scheduled, min decides which is the limt.
if remaining_new_today > 0:
print("gettin new") ##TODO problem je, ker na produkciji zgleda kot da jemlje skoz new, čeprav bi moral due
new_card_id=get_a_card_by_status(user_id, "new")
elif remaining_due_today > 0:
print("getting due")
new_card_id=get_a_card_by_status(user_id, "due")
else:
dbsession.close()