mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Adjust OffByOne error checking in admin voting page
This commit is contained in:
parent
e8d37a791c
commit
79ae3b3c92
@ -400,6 +400,9 @@ def voting_get():
|
||||
gmember = db.session.query(GuildMembers).filter(GuildMembers.user_id == uid).first()
|
||||
if not gmember:
|
||||
uid = u.user_id + 1
|
||||
gmember = db.session.query(GuildMembers).filter(GuildMembers.user_id == uid).first()
|
||||
if not gmember:
|
||||
uid = u.user_id - 1
|
||||
all_users.append({
|
||||
"id": u.id,
|
||||
"user_id": uid,
|
||||
|
Loading…
Reference in New Issue
Block a user