mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
Resolve issue #227.
This commit is contained in:
parent
312ce7a208
commit
dfd1e67fab
1 changed files with 1 additions and 2 deletions
|
@ -70,8 +70,7 @@ def page_repositories():
|
||||||
spectator = spectator.filter(not Repository.is_active)
|
spectator = spectator.filter(not Repository.is_active)
|
||||||
owner = owner.all()
|
owner = owner.all()
|
||||||
spectator = spectator.all()
|
spectator = spectator.all()
|
||||||
return json_success({"owner": [r.to_json() for r in owner],
|
return json_success([r.to_json() for r in owner]+[r.repository.to_json() for r in spectator])
|
||||||
"spectator": [r.repository.to_json() for r in spectator]})
|
|
||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
# Users will be tolerated if they change parameters they're not supposed to touch. We'll ignore them for now.
|
# Users will be tolerated if they change parameters they're not supposed to touch. We'll ignore them for now.
|
||||||
if not request.json.get("name") or not request.json.get("conditions") or not str(request.json.get("evaluation_mode")):
|
if not request.json.get("name") or not request.json.get("conditions") or not str(request.json.get("evaluation_mode")):
|
||||||
|
|
Loading…
Reference in a new issue