Skip to content

Commit

Permalink
Fix error when running simulaterounds command.
Browse files Browse the repository at this point in the history
Cast the result to a string before calling `logger.info`.
  • Loading branch information
teymour-aldridge committed Sep 23, 2024
1 parent 517d3c3 commit bbd0064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabbycat/results/dbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ def add_result(debate, submitter_type, user, discarded=False, confirmed=False, r
if result.uses_declared_winners:
logger.info("%(debate)s: %(advancing)s on %(motion)s", {
'debate': debate.matchup,
'advancing': ", ".join(result.get_winner()),
'advancing': ", ".join(map(str, result.get_winner())),
'motion': bsub.motion and bsub.motion.reference or "<No motion>",
})
else:
logger.info("%(debate)s: %(ranked)s on %(motion)s", {
'debate': debate.matchup,
'ranked': ", ".join(result.scoresheet.ranked_sides()),
'ranked': ", ".join(map(str, result.scoresheet.ranked_sides())),
'motion': bsub.motion and bsub.motion.reference or "<No motion>",
})

Expand Down

0 comments on commit bbd0064

Please sign in to comment.