Added Int-Conversion to String

This commit is contained in:
jmueller
2023-12-14 22:08:14 +01:00
parent c56acf5f84
commit e584e44b93

View File

@@ -741,7 +741,7 @@ class generate_report25(discord.ui.View):
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, ))
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:
cur.execute("SELECT discord_id_voter, reason FROM no_votes WHERE discord_id_recruit = ?", (recruit, ))
no_votes = cur.fetchall()