Skip to content

Commit 065cfbe

Browse files
committed
CR
1 parent f4612d7 commit 065cfbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ def execute():
123123
@app.route('/batch_execute', methods=['POST'])
124124
def batch_execute():
125125
all_succeeded = True
126-
responses = dict()
126+
responses = []
127127
req = request.get_json()
128128
commands = req['commands']
129129
for command in commands:
130130
response, success = _execute(command)
131-
responses[command] = {
131+
responses.append({
132132
'response': response,
133133
'success': success,
134-
}
134+
})
135135
if not success:
136136
all_succeeded = False
137137
return jsonify({

0 commit comments

Comments
 (0)