Fix previous commit
This commit is contained in:
parent
748e0d95dd
commit
ab4bd8c799
@ -330,9 +330,9 @@ def get_player_totals(acc):
|
|||||||
row = c.fetchone()
|
row = c.fetchone()
|
||||||
if row:
|
if row:
|
||||||
role_totals.append("\u0002{0}\u0002: {1}".format(role, *row))
|
role_totals.append("\u0002{0}\u0002: {1}".format(role, *row))
|
||||||
c.execute("SELECT totalgames from rolestats WHERE player=? COLLATE NOCASE", (acc,))
|
c.execute("SELECT SUM(totalgames) from rolestats WHERE player=? COLLATE NOCASE", (acc,))
|
||||||
row = c.fetchone()
|
row = c.fetchone()
|
||||||
return "\u0002{0}\u0002's totals | {1} (total: \u0002{2}\u0002)".format(player[0], ", ".join(role_totals), row)
|
return "\u0002{0}\u0002's totals | {1} (total: \u0002{2}\u0002)".format(player[0], ", ".join(role_totals), *row)
|
||||||
else:
|
else:
|
||||||
return "\u0002{0}\u0002 has not played any games.".format(acc)
|
return "\u0002{0}\u0002 has not played any games.".format(acc)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user