aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-11 02:36:30 +0100
committerGravatar GitHub <[email protected]>2024-07-11 02:36:30 +0100
commitcdda92c9c2ee1c1df74817bd0921acd5705c4fce (patch)
treec51c2bd23bbd5edc02547267fb38d6441fb1f980
parentMove unittest filtering to the Form.dict() function (diff)
parentAdd new vote question type (diff)
Merge pull request #281 from python-discord/jb3/components/vote-field
Add new vote question type
-rw-r--r--backend/constants.py4
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"