popravljen deck bug??
parent
f8d7427f1b
commit
09d9da152e
|
@ -106,7 +106,7 @@ def list_of_new_cards_by_ids(user_id):
|
||||||
dbsession.close()
|
dbsession.close()
|
||||||
return l
|
return l
|
||||||
|
|
||||||
|
|
||||||
def rated_today_by_staus (card_status, user_id):
|
def rated_today_by_staus (card_status, user_id):
|
||||||
"""
|
"""
|
||||||
Returns number of cards rated today by user by status (new or due)
|
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
|
n = 0
|
||||||
d = 0
|
d = 0
|
||||||
for rating in ratings_today:
|
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:
|
if count_all_rates_of_card == 1:
|
||||||
n+=1
|
n+=1
|
||||||
|
|
Loading…
Reference in New Issue