From ad61de016a2af4265595f85141ea45d890eb4c68 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 8 Jun 2023 06:45:15 +0300 Subject: [PATCH] dont count beneficaries --- files/routes/polls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/polls.py b/files/routes/polls.py index 97476acbd..ce5b1bc8f 100644 --- a/files/routes/polls.py +++ b/files/routes/polls.py @@ -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