1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-29 07:54:19 +00:00

Fix minor issue

This commit is contained in:
Lorenzo Balugani 2021-05-14 11:00:24 +02:00
parent 5f68ced84b
commit ff8d6290b8

View file

@ -79,11 +79,11 @@ def page_repository_alerts(rid):
if request.method == "POST": if request.method == "POST":
if 'name' not in request.json: if 'name' not in request.json:
json_error("Missing name."), 400 return json_error("Missing name."), 400
if 'limit' not in request.json: if 'limit' not in request.json:
json_error('Missing limit'), 400 return json_error('Missing limit'), 400
if 'window_size' not in request.json: 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'], alert = Alert(name=request.json['name'], limit=request.json['limit'], window_size=request.json['window_size'],
repository_id=rid) repository_id=rid)
ext.session.add(alert) ext.session.add(alert)