summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorsuhas <hi@suhas.one>2023-11-16 23:00:29 -0600
committersuhas <hi@suhas.one>2023-11-16 23:00:29 -0600
commit2e38b5aefb08abdd34d5244d0998274e5f35ff3e (patch)
treea221637a7eaa9195c8ae5322d8c73c1ad70e90a2 /common
parente0ede3dddabf27cde5a1db35e499885ece51f542 (diff)
downloadqbb-2e38b5aefb08abdd34d5244d0998274e5f35ff3e.tar.gz
add stats tracking
Diffstat (limited to 'common')
-rw-r--r--common/__pycache__/types.cpython-311.pycbin403 -> 641 bytes
-rw-r--r--common/types.py15
2 files changed, 15 insertions, 0 deletions
diff --git a/common/__pycache__/types.cpython-311.pyc b/common/__pycache__/types.cpython-311.pyc
index 3d7bbd1..131488c 100644
--- a/common/__pycache__/types.cpython-311.pyc
+++ b/common/__pycache__/types.cpython-311.pyc
Binary files differ
diff --git a/common/types.py b/common/types.py
index e9716b1..b28b457 100644
--- a/common/types.py
+++ b/common/types.py
@@ -14,3 +14,18 @@ question_category = Literal[
"Other Academic",
"Trash",
]
+
+category_field_translations = {
+ 'Literature': 'literature',
+ 'History': 'history',
+ 'Science': 'science',
+ 'Fine Arts': 'fine_arts',
+ 'Religion': 'religion',
+ 'Mythology': 'mythology',
+ 'Philosophy': 'philosophy',
+ 'Social Science': 'social_science',
+ 'Current Events': 'current_events',
+ 'Geography': 'geography',
+ 'Other Academic': 'other_academic',
+ 'Trash': 'trash'
+}