From fe78f9b163c8dce575a8b6ba63a25b378882a86c Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 11 Jul 2024 02:26:23 +0100 Subject: Add new vote question type --- backend/constants.py | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.2.3