From ff8d6290b83a82a0f6d5b992d303d3df1d5d7195 Mon Sep 17 00:00:00 2001 From: Lorenzo Balugani Date: Fri, 14 May 2021 11:00:24 +0200 Subject: [PATCH] Fix minor issue --- nest_backend/routes/repository/alerts/repository_alerts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nest_backend/routes/repository/alerts/repository_alerts.py b/nest_backend/routes/repository/alerts/repository_alerts.py index 7b6be41..a47e094 100644 --- a/nest_backend/routes/repository/alerts/repository_alerts.py +++ b/nest_backend/routes/repository/alerts/repository_alerts.py @@ -79,11 +79,11 @@ def page_repository_alerts(rid): if request.method == "POST": if 'name' not in request.json: - json_error("Missing name."), 400 + return json_error("Missing name."), 400 if 'limit' not in request.json: - json_error('Missing limit'), 400 + return json_error('Missing limit'), 400 if 'window_size' not in request.json: - json_error('Missing window size'), 400 + return json_error('Missing window size'), 400 alert = Alert(name=request.json['name'], limit=request.json['limit'], window_size=request.json['window_size'], repository_id=rid) ext.session.add(alert)