Fixed Report Embed (changed variable)

This commit is contained in:
jmueller
2023-12-14 22:58:05 +01:00
parent acef13e041
commit c1eeb47217

View File

@@ -848,7 +848,7 @@ def create_report_embed():
yes_count = cur.fetchone()[0] yes_count = cur.fetchone()[0]
cur.execute("SELECT count(*) FROM no_votes WHERE discord_id_recruit = ?", (recruit[1], )) cur.execute("SELECT count(*) FROM no_votes WHERE discord_id_recruit = ?", (recruit[1], ))
no_count = cur.fetchone()[0] no_count = cur.fetchone()[0]
if recruit[2] != 0: if no_count != 0:
cur.execute("SELECT reason, discord_id_voter FROM no_votes WHERE discord_id_recruit = ?", (recruit[1], )) cur.execute("SELECT reason, discord_id_voter FROM no_votes WHERE discord_id_recruit = ?", (recruit[1], ))
no_votes = cur.fetchall() no_votes = cur.fetchall()
description = description + "**" + recruit[0] + ":** " + str(yes_count) + " Ja, " + str(no_count) + " Nein.\n" description = description + "**" + recruit[0] + ":** " + str(yes_count) + " Ja, " + str(no_count) + " Nein.\n"