1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 04:54:18 +00:00

Resolve issue #227.

This commit is contained in:
Lorenzo Balugani 2021-05-12 17:27:28 +02:00
parent 312ce7a208
commit dfd1e67fab

View file

@ -70,8 +70,7 @@ def page_repositories():
spectator = spectator.filter(not Repository.is_active)
owner = owner.all()
spectator = spectator.all()
return json_success({"owner": [r.to_json() for r in owner],
"spectator": [r.repository.to_json() for r in spectator]})
return json_success([r.to_json() for r in owner]+[r.repository.to_json() for r in spectator])
elif request.method == "POST":
# 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")):