diff --git a/sr_session.py b/sr_session.py index aa426e1..01c26cc 100644 --- a/sr_session.py +++ b/sr_session.py @@ -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()