fix whoopsie

master
Aevann1 2022-09-08 21:16:57 +02:00
parent 485c30ec3c
commit 66bf74b444
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class Submission(Base):
if o.exclusive == 3: if o.exclusive == 3:
body += " - <b>WINNER!</b>" body += " - <b>WINNER!</b>"
if not winner and v.admin_level > 2: if not winner and v and v.admin_level > 2:
body += f'''<button class="btn btn-primary px-2 mx-2" style="font-size:10px;padding:2px" onclick="post_toast(this,'/distribute/{o.id}')">Declare winner</button>''' body += f'''<button class="btn btn-primary px-2 mx-2" style="font-size:10px;padding:2px" onclick="post_toast(this,'/distribute/{o.id}')">Declare winner</button>'''
body += "</div>" body += "</div>"
else: else: