Skip to content

Commit 5a93f9d

Browse files
committed
backend CHANGE reflect recent changes in liberouter-gui
keep the JSON data from the commit request in the same order as sent from frontend. Otherwise the data are created in different order than user did it in frontend which could confuse user despite the data are formally correct (and the same).
1 parent 231cb29 commit 5a93f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def session_commit():
282282
session = auth.lookup(request.headers.get('Authorization', None))
283283
user = session['user']
284284

285-
req = request.get_json()
285+
req = request.get_json(keep_order = True)
286286
if not 'key' in req:
287287
return(json.dumps({'success': False, 'error-msg': 'Missing session key.'}))
288288
if not 'modifications' in req:

0 commit comments

Comments
 (0)