diff options
author | 2024-07-11 02:26:23 +0100 | |
---|---|---|
committer | 2024-07-11 02:26:23 +0100 | |
commit | fe78f9b163c8dce575a8b6ba63a25b378882a86c (patch) | |
tree | c51c2bd23bbd5edc02547267fb38d6441fb1f980 | |
parent | Move unittest filtering to the Form.dict() function (diff) |
Add new vote question type
-rw-r--r-- | backend/constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py index 8089077..21db4d4 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -43,6 +43,7 @@ QUESTION_TYPES = [ "range", "section", "timezone", + "vote", ] REQUIRED_QUESTION_TYPE_DATA = { @@ -61,6 +62,9 @@ REQUIRED_QUESTION_TYPE_DATA = { "section": { "text": str, }, + "vote": { + "options": list, + }, } DISCORD_API_BASE_URL = "https://discord.com/api/v8" |