mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
Fix minor issue
This commit is contained in:
parent
5f68ced84b
commit
ff8d6290b8
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue