Added Int-Conversion to String
This commit is contained in:
2
main.py
2
main.py
@@ -741,7 +741,7 @@ class generate_report25(discord.ui.View):
|
|||||||
for recruit in select.values:
|
for recruit in select.values:
|
||||||
cur.execute("SELECT recruits.nickname, count(yes_votes.id), count(no_votes.id) FROM recruits LEFT JOIN no_votes ON recruits.discord_id = no_votes.discord_id_recruit LEFT JOIN yes_votes ON recruits.discord_id = yes_votes.discord_id_recruit WHERE recruits.discord_id = ?", (recruit, ))
|
cur.execute("SELECT recruits.nickname, count(yes_votes.id), count(no_votes.id) FROM recruits LEFT JOIN no_votes ON recruits.discord_id = no_votes.discord_id_recruit LEFT JOIN yes_votes ON recruits.discord_id = yes_votes.discord_id_recruit WHERE recruits.discord_id = ?", (recruit, ))
|
||||||
data = cur.fetchone()
|
data = cur.fetchone()
|
||||||
description = description + "**" + data[0] + ":** " + data[1] + " Ja | " + data[2] + "Nein -> \n"
|
description = description + "**" + str(data[0]) + ":** " + str(data[1]) + " Ja | " + str(data[2]) + "Nein -> \n"
|
||||||
if data[1] != 0:
|
if data[1] != 0:
|
||||||
cur.execute("SELECT discord_id_voter, reason FROM no_votes WHERE discord_id_recruit = ?", (recruit, ))
|
cur.execute("SELECT discord_id_voter, reason FROM no_votes WHERE discord_id_recruit = ?", (recruit, ))
|
||||||
no_votes = cur.fetchall()
|
no_votes = cur.fetchall()
|
||||||
|
|||||||
Reference in New Issue
Block a user