forked from rDrama/rDrama
dont count beneficaries
parent
5f5c00304f
commit
ad61de016a
|
@ -134,7 +134,7 @@ def option_votes(option_id, v):
|
||||||
total_ts = format(total_ts, ",") if total_ts else '0'
|
total_ts = format(total_ts, ",") if total_ts else '0'
|
||||||
|
|
||||||
if v.admin_level >= 3:
|
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:
|
else:
|
||||||
total_patrons = None
|
total_patrons = None
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ def option_votes_comment(option_id, v):
|
||||||
total_ts = format(total_ts, ",") if total_ts else '0'
|
total_ts = format(total_ts, ",") if total_ts else '0'
|
||||||
|
|
||||||
if v.admin_level >= 3:
|
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:
|
else:
|
||||||
total_patrons = None
|
total_patrons = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue