Skip to content

Commit 5358fff

Browse files
authored
serialize web queue with a consistent order (#204)
1 parent c50e0e5 commit 5358fff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/onthespot/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def restart():
237237
@login_required
238238
def get_items():
239239
with download_queue_lock:
240-
return Response(json.dumps(download_queue), mimetype='application/json')
240+
return Response(json.dumps(download_queue, sort_keys=True), mimetype='application/json')
241241

242242
@app.route('/api/cancel/<path:local_id>', methods=['POST'])
243243
@login_required

0 commit comments

Comments
 (0)