Fixed Report Embed (changed variable)
This commit is contained in:
2
main.py
2
main.py
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user