1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Swap true and false

This commit is contained in:
Steffo 2019-09-03 23:21:24 +02:00
parent c288612fc9
commit 11b808e778

View file

@ -51,6 +51,7 @@ class TriviaCommand(Command):
random.shuffle(answers) random.shuffle(answers)
elif question["type"] == "boolean": elif question["type"] == "boolean":
answers.sort(key=lambda a: a) answers.sort(key=lambda a: a)
answers.reverse()
else: else:
raise NotImplementedError("Unknown question type") raise NotImplementedError("Unknown question type")
# Find the correct index # Find the correct index