Skip to content

Commit

Permalink
more styling, adding api to download all calis
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jan 8, 2025
1 parent a131dbb commit 1f6574a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 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.02152627.css",
"main.js": "/static/js/main.a686118a.js",
"main.js": "/static/js/main.6c80eeb0.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.02152627.css.map": "/static/css/main.02152627.css.map",
"main.a686118a.js.map": "/static/js/main.a686118a.js.map"
"main.6c80eeb0.js.map": "/static/js/main.6c80eeb0.js.map"
},
"entrypoints": [
"static/css/main.02152627.css",
"static/js/main.a686118a.js"
"static/js/main.6c80eeb0.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.a686118a.js"></script><link href="/static/css/main.02152627.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.6c80eeb0.js"></script><link href="/static/css/main.02152627.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
7 changes: 5 additions & 2 deletions pioreactorui/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ def get_recent_logs_for_unit_and_experiment(
WHERE (l.experiment=? OR l.experiment=?)
AND (l.pioreactor_unit=? or l.pioreactor_unit=?)
AND ({get_level_string(min_level)})
AND l.timestamp >= MAX( STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW', '-24 hours'), (SELECT created_at FROM experiments where experiment=?) )
AND l.timestamp >= MAX(
STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW', '-24 hours'),
COALESCE((SELECT created_at FROM experiments WHERE experiment=?), STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW', '-24 hours'))
)
ORDER BY l.timestamp DESC LIMIT 50;""",
(experiment, UNIVERSAL_EXPERIMENT, pioreactor_unit, UNIVERSAL_IDENTIFIER, experiment),
)
Expand Down Expand Up @@ -1982,7 +1985,7 @@ def get_experiment_assignment_for_worker(pioreactor_unit: str) -> ResponseReturn
)
elif result["experiment"] is None: # type: ignore
return (
jsonify({"error": f"Worker {pioreactor_unit} is not assigned to any experiment."}),
jsonify({"error": f"Worker `{pioreactor_unit}` is not assigned to any experiment."}),
404,
)
else:
Expand Down
6 changes: 3 additions & 3 deletions static/js/main.a686118a.js → static/js/main.6c80eeb0.js

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

0 comments on commit 1f6574a

Please sign in to comment.