remove unnecessary check
parent
4f637d9538
commit
80f661f7fb
|
@ -231,7 +231,7 @@ def distribute(v, option_id):
|
||||||
cid = notif_comment(f"You lost the 200 coins you bet on [{post.title}]({post.shortlink}) :marseylaugh:")
|
cid = notif_comment(f"You lost the 200 coins you bet on [{post.title}]({post.shortlink}) :marseylaugh:")
|
||||||
losing_voters = []
|
losing_voters = []
|
||||||
for o in post.options:
|
for o in post.options:
|
||||||
if o.exclusive == 2 and o.id != option_id:
|
if o.exclusive == 2:
|
||||||
losing_voters.extend([x.user_id for x in o.votes])
|
losing_voters.extend([x.user_id for x in o.votes])
|
||||||
for uid in losing_voters:
|
for uid in losing_voters:
|
||||||
add_notif(cid, uid)
|
add_notif(cid, uid)
|
||||||
|
|
Loading…
Reference in New Issue