Finish support for multiple answers polls

This commit is contained in:
Thomas Sileo
2019-08-15 14:47:41 +02:00
parent c125891681
commit 49ffe3ab75
7 changed files with 67 additions and 38 deletions

View File

@@ -493,11 +493,13 @@ def api_new_question() -> _Response:
)
}
of = _user_api_arg("of")
print(of)
if of == "anyOf":
choices["anyOf"] = answers
else:
choices["oneOf"] = answers
print(choices)
raw_question = dict(
attributedTo=MY_PERSON.id,
cc=list(set(cc)),