popravljen deck bug??

master
janko 2023-02-05 19:41:50 +01:00
parent f8d7427f1b
commit 09d9da152e
1 changed files with 3 additions and 2 deletions

View File

@ -106,7 +106,7 @@ def list_of_new_cards_by_ids(user_id):
dbsession.close()
return l
def rated_today_by_staus (card_status, user_id):
"""
Returns number of cards rated today by user by status (new or due)
@ -121,7 +121,8 @@ def rated_today_by_staus (card_status, user_id):
n = 0
d = 0
for rating in ratings_today:
count_all_rates_of_card = dbsession.query(Card).filter(Card.id == rating.card_id).count()
count_all_rates_of_card = dbsession.query(Card).filter(Card.id == rating.card_id).count()
print("count_all_rates_of_card: ", count_all_rates_of_card)
if count_all_rates_of_card == 1:
n+=1