Skip to content

Commit

Permalink
Backport of a fix by Pourliver
Browse files Browse the repository at this point in the history
  • Loading branch information
obilodeau committed May 18, 2024
1 parent f14baaf commit c76fb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_good_answer_team(col, row):
"""
Returns the team id of the team who correctly answered the specified question
"""
team = db.session.query(Team).join(Answer, Question).filter(
team = db.session.query(Team).join(Answer).join(Question).filter(
and_(Question.col == col, Question.row == row,
Answer.response == Response.good)).first()
if team:
Expand Down

0 comments on commit c76fb4f

Please sign in to comment.