Skip to content

Commit

Permalink
[Scripts] Accept variants of "Sir Winston Churchill" trivia answer
Browse files Browse the repository at this point in the history
Accept "Churchill" and "Winston Churchill"
  • Loading branch information
Harmon758 committed Jul 24, 2023
1 parent f84f4c5 commit 2afb6a0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/update_trivia.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@
)
connection.commit()

connection.execute(
"""
UPDATE trivia.clues
SET acceptable_answers = ARRAY[
'Churchill','Sir Winston Churchill','Winston Churchill'
]
WHERE answer = 'Sir Winston Churchill'
"""
)
connection.commit()

connection.execute(
"""
UPDATE trivia.clues
Expand Down

0 comments on commit 2afb6a0

Please sign in to comment.