Skip to content

Commit 83d41fc

Browse files
committed
v4
1 parent aea06ab commit 83d41fc

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def post(self):
111111
type: string
112112
description: the name of the question
113113
options:
114-
type: array
115-
items:
116-
type: string
114+
type: string
117115
description: the options of the question
118116
correct:
119117
type: integer

question_review.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ def add_record(data):
3131
# require data contains a "name" key and a "options" key and a "correct" key(data is a dict)
3232
if 'name' not in data or 'options' not in data or 'correct' not in data:
3333
return False
34-
# Convert options to a string
35-
if isinstance(data['options'], list):
36-
data['options'] = ", ".join(data['options'])
3734
table.create(data)
3835
return True
3936

0 commit comments

Comments
 (0)