From ed161366159829531880750ca036306cd8209e09 Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sun, 3 May 2020 10:26:32 +0200 Subject: [PATCH] client: coding style --- client/Localization.py | 22 +++++++++++----------- client/blueprints/Authentication.py | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client/Localization.py b/client/Localization.py index c76ffd8..d51ea37 100644 --- a/client/Localization.py +++ b/client/Localization.py @@ -1,13 +1,13 @@ LOCALIZATION = { - "due_by": "Due by", - "done": "Done", - "done_at": "Done at", - "error_general": "An error occured", - "error_param_invalid": "ERROR: parameter is not numeric or less than 1", - "error_roadmap_not_existing": "ERROR: no roadmap with this ID existing", - "error_milestone_not_existing": "ERROR: no milestone with this ID existing", - "error_task_not_existing": "ERROR: no task with this ID existing", - "error_subtask_not_existing": "ERROR: no subtask with this ID existing", - "error_no_milestones": "ERROR: no milestones for this roadmap", - "unauthorized": "Invalid password" + 'due_by': 'Due by', + 'done': 'Done', + 'done_at': 'Done at', + 'error_general': 'An error occured', + 'error_param_invalid': 'ERROR: parameter is not numeric or less than 1', + 'error_roadmap_not_existing': 'ERROR: no roadmap with this ID existing', + 'error_milestone_not_existing': 'ERROR: no milestone with this ID existing', + 'error_task_not_existing': 'ERROR: no task with this ID existing', + 'error_subtask_not_existing': 'ERROR: no subtask with this ID existing', + 'error_no_milestones': 'ERROR: no milestones for this roadmap', + 'unauthorized': 'Invalid password' } \ No newline at end of file diff --git a/client/blueprints/Authentication.py b/client/blueprints/Authentication.py index 944297f..33329ab 100644 --- a/client/blueprints/Authentication.py +++ b/client/blueprints/Authentication.py @@ -25,11 +25,11 @@ def construct_blueprint(urlBuilder): return render_template('login.html', message=LOCALIZATION['unauthorized']) if response.status_code == 200: - token = response.json()["access_token"] + token = response.json()['access_token'] session['session_token'] = token return redirect(url_for('admin_roadmaps.overview')) - return render_template('error.html', message=response.json()["msg"]) + return render_template('error.html', message=response.json()['msg']) @authentication.route('/admin/logout') def logout(): -- GitLab