Finish support for multiple answers polls
This commit is contained in:
parent
c125891681
commit
49ffe3ab75
7 changed files with 67 additions and 38 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue