Skip to content

Commit

Permalink
adding log page
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Dec 22, 2024
1 parent 8278f99 commit 58056f5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
6 changes: 3 additions & 3 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.a3dbeddd.css",
"main.js": "/static/js/main.99b2efcf.js",
"main.js": "/static/js/main.605e9ff6.js",
"static/media/roboto-all-500-normal.woff": "/static/media/roboto-all-500-normal.0ab669b7a0d19b178f57.woff",
"static/media/roboto-all-700-normal.woff": "/static/media/roboto-all-700-normal.a457fde362a540fcadff.woff",
"static/media/roboto-all-400-normal.woff": "/static/media/roboto-all-400-normal.c5d001fa922fa66a147f.woff",
Expand Down Expand Up @@ -36,10 +36,10 @@
"static/media/roboto-greek-ext-700-normal.woff2": "/static/media/roboto-greek-ext-700-normal.bd9854c751441ccc1a70.woff2",
"index.html": "/index.html",
"main.a3dbeddd.css.map": "/static/css/main.a3dbeddd.css.map",
"main.99b2efcf.js.map": "/static/js/main.99b2efcf.js.map"
"main.605e9ff6.js.map": "/static/js/main.605e9ff6.js.map"
},
"entrypoints": [
"static/css/main.a3dbeddd.css",
"static/js/main.99b2efcf.js"
"static/js/main.605e9ff6.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Pioreactor"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.99b2efcf.js"></script><link href="/static/css/main.a3dbeddd.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Pioreactor"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.605e9ff6.js"></script><link href="/static/css/main.a3dbeddd.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
14 changes: 14 additions & 0 deletions pioreactorui/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,20 @@ def get_list_of_workers_for_experiment(experiment: str) -> ResponseReturnValue:
return jsonify(workers)


@api.route("/experiments/<experiment>/historical_workers", methods=["GET"])
def get_list_of_historical_workers_for_experiment(experiment: str) -> ResponseReturnValue:
workers = query_app_db(
"""
SELECT pioreactor_unit, experiment, MAX(unassigned_at is NULL) as is_currently_assigned_to_experiment
FROM experiment_worker_assignments_history
WHERE experiment=?
GROUP by 1,2;
""",
(experiment,),
)
return jsonify(workers)


@api.route("/experiments/<experiment>/workers", methods=["PUT"])
def add_worker_to_experiment(experiment: str) -> ResponseReturnValue:
# assign
Expand Down
8 changes: 4 additions & 4 deletions static/js/main.99b2efcf.js → static/js/main.605e9ff6.js

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

0 comments on commit 58056f5

Please sign in to comment.