aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/trivia_quiz.py
diff options
context:
space:
mode:
authorGravatar Objectivitix <[email protected]>2021-05-09 17:43:33 -0300
committerGravatar GitHub <[email protected]>2021-05-09 17:43:33 -0300
commit8b0eb4aa07fbc9c20f7748888d0db00f2264b774 (patch)
tree2de8123dc090d644fad90b1b16907246dd12a0f5 /bot/exts/evergreen/trivia_quiz.py
parentuse binary formatting instead of `bin()` in function (diff)
delete `bin()`s
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index 7a498ebd..03aadd19 100644
--- a/bot/exts/evergreen/trivia_quiz.py
+++ b/bot/exts/evergreen/trivia_quiz.py
@@ -131,12 +131,12 @@ def binary_calc(q_format: str, a_format: str) -> Tuple[str, str]:
b -= 5
question = q_format.format(
- bin(a)[2:],
+ a,
oper[0],
- bin(b)[2:],
+ b,
)
answer = a_format.format(
- bin(oper[1](a, b))[2:]
+ oper[1](a, b)
)
return question, answer