Skip to content

Commit

Permalink
Add project settings to api.
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed Jun 10, 2024
1 parent 7bd8607 commit d6d4a9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mupifDB/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,15 @@ def get_execution_statistics():
return output


@app.get("/settings/", tags=["Settings"])
def get_settings():
table = db.Settings
for s in table.find():
del s['_id']
return s
return {}


@app.get("/scheduler_statistics/", tags=["Stats"])
def get_scheduler_statistics():
table = db.Stat
Expand Down

0 comments on commit d6d4a9c

Please sign in to comment.