dont count beneficaries

pull/152/head
Aevann 2023-06-08 06:45:15 +03:00
parent 5f5c00304f
commit ad61de016a
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ def option_votes(option_id, v):
total_ts = format(total_ts, ",") if total_ts else '0'
if v.admin_level >= 3:
total_patrons = g.db.query(User).filter(User.id.in_(user_ids), User.patron > 0).count()
total_patrons = g.db.query(User).filter(User.id.in_(user_ids), User.patron > 1).count()
else:
total_patrons = None
@ -170,7 +170,7 @@ def option_votes_comment(option_id, v):
total_ts = format(total_ts, ",") if total_ts else '0'
if v.admin_level >= 3:
total_patrons = g.db.query(User).filter(User.id.in_(user_ids), User.patron > 0).count()
total_patrons = g.db.query(User).filter(User.id.in_(user_ids), User.patron > 1).count()
else:
total_patrons = None