We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea06ab commit 83d41fcCopy full SHA for 83d41fc
2 files changed
app.py
@@ -111,9 +111,7 @@ def post(self):
111
type: string
112
description: the name of the question
113
options:
114
- type: array
115
- items:
116
- type: string
+ type: string
117
description: the options of the question
118
correct:
119
type: integer
question_review.py
@@ -31,9 +31,6 @@ def add_record(data):
31
# require data contains a "name" key and a "options" key and a "correct" key(data is a dict)
32
if 'name' not in data or 'options' not in data or 'correct' not in data:
33
return False
34
- # Convert options to a string
35
- if isinstance(data['options'], list):
36
- data['options'] = ", ".join(data['options'])
37
table.create(data)
38
return True
39
0 commit comments