I was using '-' as a filler in such cases, and was populating four values into a tuple. The template expected three, so in situations when I had to fall back on the filler values, I was providing one too many, leading to 'too many values to unpack' upon loading up the main page.
for (player_id, nick, elo) in duel_ranks]
for i in range(leaderboard_count-len(duel_ranks)):
- duel_ranks.append(('-', '-', '-', '-'))
+ duel_ranks.append(('-', '-', '-'))
# top ranked CTF-ers
ctf_ranks = DBSession.query(PlayerRank.player_id, PlayerRank.nick,