From f8d7427f1bf0ec9fa449e5a5fa726b0a3a1cf570 Mon Sep 17 00:00:00 2001 From: janko Date: Tue, 1 Nov 2022 10:55:07 +0100 Subject: [PATCH] some print statemets for debugging --- sr_session.py | 5 +++++ 1 file changed, 5 insertions(+) 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()