Skip to content

Commit 0ca64d1

Browse files
fix some ui issues
1 parent f94eda0 commit 0ca64d1

23 files changed

+126
-129
lines changed

asset-manifest.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,37 @@
11
{
22
"files": {
3-
"main.css": "/static/css/main.02152627.css",
4-
"main.js": "/static/js/main.0acc5937.js",
3+
"main.css": "/static/css/main.dbb6a692.css",
4+
"main.js": "/static/js/main.31979bee.js",
55
"static/media/roboto-all-500-normal.woff": "/static/media/roboto-all-500-normal.0ab669b7a0d19b178f57.woff",
66
"static/media/roboto-all-700-normal.woff": "/static/media/roboto-all-700-normal.a457fde362a540fcadff.woff",
77
"static/media/roboto-all-400-normal.woff": "/static/media/roboto-all-400-normal.c5d001fa922fa66a147f.woff",
8-
"static/media/roboto-all-300-normal.woff": "/static/media/roboto-all-300-normal.168d6383e73339293ac3.woff",
98
"static/media/roboto-latin-500-normal.woff2": "/static/media/roboto-latin-500-normal.f25d774ecfe0996f8eb5.woff2",
109
"static/media/roboto-latin-700-normal.woff2": "/static/media/roboto-latin-700-normal.227c93190fe7f82de3f8.woff2",
1110
"static/media/roboto-latin-400-normal.woff2": "/static/media/roboto-latin-400-normal.b009a76ad6afe4ebd301.woff2",
12-
"static/media/roboto-latin-300-normal.woff2": "/static/media/roboto-latin-300-normal.c48fb6765a9fcb00b330.woff2",
1311
"static/media/roboto-cyrillic-ext-400-normal.woff2": "/static/media/roboto-cyrillic-ext-400-normal.804378952da8a10faae2.woff2",
14-
"static/media/roboto-cyrillic-ext-300-normal.woff2": "/static/media/roboto-cyrillic-ext-300-normal.4777461b144e55145268.woff2",
1512
"static/media/roboto-cyrillic-ext-500-normal.woff2": "/static/media/roboto-cyrillic-ext-500-normal.62ced72e5832f02c2796.woff2",
1613
"static/media/roboto-cyrillic-ext-700-normal.woff2": "/static/media/roboto-cyrillic-ext-700-normal.be4d02458ce53887dc37.woff2",
1714
"static/media/roboto-latin-ext-400-normal.woff2": "/static/media/roboto-latin-ext-400-normal.861b791f9de857a6e7bc.woff2",
1815
"static/media/roboto-latin-ext-700-normal.woff2": "/static/media/roboto-latin-ext-700-normal.ed67ad54b1a8f5d21150.woff2",
1916
"static/media/roboto-latin-ext-500-normal.woff2": "/static/media/roboto-latin-ext-500-normal.9165081d10e1ba601384.woff2",
20-
"static/media/roboto-latin-ext-300-normal.woff2": "/static/media/roboto-latin-ext-300-normal.dc7dcec8e3f654e0ed63.woff2",
2117
"static/media/roboto-cyrillic-500-normal.woff2": "/static/media/roboto-cyrillic-500-normal.cad7d3d9cb265e334e58.woff2",
2218
"static/media/roboto-cyrillic-700-normal.woff2": "/static/media/roboto-cyrillic-700-normal.d010f1f324e111a22e53.woff2",
2319
"static/media/roboto-cyrillic-400-normal.woff2": "/static/media/roboto-cyrillic-400-normal.71a33b6b50457b2c903a.woff2",
24-
"static/media/roboto-cyrillic-300-normal.woff2": "/static/media/roboto-cyrillic-300-normal.1431d1cef06ad04f5458.woff2",
25-
"static/media/roboto-greek-300-normal.woff2": "/static/media/roboto-greek-300-normal.db2632771401f61463fe.woff2",
2620
"static/media/roboto-greek-400-normal.woff2": "/static/media/roboto-greek-400-normal.c35e4c3958e209d17b31.woff2",
2721
"static/media/roboto-greek-500-normal.woff2": "/static/media/roboto-greek-500-normal.9ac81fefbe6c319ea40b.woff2",
2822
"static/media/roboto-greek-700-normal.woff2": "/static/media/roboto-greek-700-normal.50e795c1345353b0e996.woff2",
2923
"static/media/roboto-vietnamese-500-normal.woff2": "/static/media/roboto-vietnamese-500-normal.d8642a3d1d4ef6179644.woff2",
3024
"static/media/roboto-vietnamese-400-normal.woff2": "/static/media/roboto-vietnamese-400-normal.3230f9b040f3c630e0c3.woff2",
3125
"static/media/roboto-vietnamese-700-normal.woff2": "/static/media/roboto-vietnamese-700-normal.3425a701027d0699e369.woff2",
32-
"static/media/roboto-vietnamese-300-normal.woff2": "/static/media/roboto-vietnamese-300-normal.32fc45a3d1e8ea11fabc.woff2",
3326
"static/media/roboto-greek-ext-500-normal.woff2": "/static/media/roboto-greek-ext-500-normal.6fb9cffb1d3e72bf9293.woff2",
3427
"static/media/roboto-greek-ext-400-normal.woff2": "/static/media/roboto-greek-ext-400-normal.169619821ea93019d1bb.woff2",
35-
"static/media/roboto-greek-ext-300-normal.woff2": "/static/media/roboto-greek-ext-300-normal.35b9d6be04b95f0f0530.woff2",
3628
"static/media/roboto-greek-ext-700-normal.woff2": "/static/media/roboto-greek-ext-700-normal.bd9854c751441ccc1a70.woff2",
3729
"index.html": "/index.html",
38-
"main.02152627.css.map": "/static/css/main.02152627.css.map",
39-
"main.0acc5937.js.map": "/static/js/main.0acc5937.js.map"
30+
"main.dbb6a692.css.map": "/static/css/main.dbb6a692.css.map",
31+
"main.31979bee.js.map": "/static/js/main.31979bee.js.map"
4032
},
4133
"entrypoints": [
42-
"static/css/main.02152627.css",
43-
"static/js/main.0acc5937.js"
34+
"static/css/main.dbb6a692.css",
35+
"static/js/main.31979bee.js"
4436
]
4537
}

contrib/automations/dosing/chemostat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ fields:
1111
- key: volume
1212
default: 0.5
1313
unit: mL
14-
label: Volume / dose
14+
label: Volume per dose
1515
type: numeric

contrib/automations/dosing/fed_batch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ fields:
1111
- key: volume
1212
default: 1.0
1313
unit: mL
14-
label: Volume / dose
14+
label: Volume per dose
1515
type: numeric

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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.0acc5937.js"></script><link href="/static/css/main.02152627.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
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.31979bee.js"></script><link href="/static/css/main.dbb6a692.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

pioreactorui/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def query_app_db(
224224
rv = cur.fetchall()
225225
cur.close()
226226
if one:
227-
return rv[0] if rv else None # only when explicitly requested
227+
return rv[0] if rv else None
228228
return rv
229229

230230

@@ -244,7 +244,8 @@ def modify_app_db(statement: str, args=()) -> int:
244244
try:
245245
cur.execute(statement, args)
246246
con.commit()
247-
except sqlite3.IntegrityError:
247+
except sqlite3.IntegrityError as e:
248+
print(e)
248249
return 0
249250
except Exception as e:
250251
print(e)

pioreactorui/api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def get_growth_rates_per_unit(pioreactor_unit: str, experiment: str) -> Response
742742
SELECT pioreactor_unit as unit,
743743
json_group_array(json_object('x', timestamp, 'y', round(rate, 5))) as data
744744
FROM growth_rates
745-
WHERE experiment=? AND pioreactor_unit=?
745+
WHERE experiment=? AND pioreactor_unit=? AND
746746
((ROWID * 0.61803398875) - cast(ROWID * 0.61803398875 as int) < 1.0/?) AND
747747
timestamp > STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW', ?)
748748
GROUP BY 1
@@ -2335,11 +2335,12 @@ def get_experiments_worker_assignments() -> ResponseReturnValue:
23352335
"""
23362336
SELECT e.experiment, count(a.pioreactor_unit) as worker_count
23372337
FROM experiments e
2338-
LEFT JOIN experiment_worker_assignments a
2338+
JOIN experiment_worker_assignments a
23392339
on e.experiment = a.experiment
2340+
JOIN workers w -- make sure the worker is still part of the inventory
2341+
on w.pioreactor_unit = a.pioreactor_unit
23402342
GROUP BY 1
23412343
HAVING count(a.pioreactor_unit) > 0
2342-
ORDER BY 2 DESC
23432344
""",
23442345
)
23452346
if result:

requirements_dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ pytest
33
pytest-timeout
44
pytest-random-order
55
pytest-mock
6+
mypy
7+
black
8+
flake8

static/css/main.02152627.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

static/css/main.02152627.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)