Skip to content

Commit 353f088

Browse files
wip
1 parent 2687051 commit 353f088

File tree

9 files changed

+15
-19
lines changed

9 files changed

+15
-19
lines changed

asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
33
"main.css": "/static/css/main.02152627.css",
4-
"main.js": "/static/js/main.cd00c683.js",
4+
"main.js": "/static/js/main.ee984215.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",
@@ -36,10 +36,10 @@
3636
"static/media/roboto-greek-ext-700-normal.woff2": "/static/media/roboto-greek-ext-700-normal.bd9854c751441ccc1a70.woff2",
3737
"index.html": "/index.html",
3838
"main.02152627.css.map": "/static/css/main.02152627.css.map",
39-
"main.cd00c683.js.map": "/static/js/main.cd00c683.js.map"
39+
"main.ee984215.js.map": "/static/js/main.ee984215.js.map"
4040
},
4141
"entrypoints": [
4242
"static/css/main.02152627.css",
43-
"static/js/main.cd00c683.js"
43+
"static/js/main.ee984215.js"
4444
]
4545
}

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.cd00c683.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.ee984215.js"></script><link href="/static/css/main.02152627.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

pioreactorui/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,10 @@ def _get_app_db_connection():
177177
db.row_factory = _make_dicts
178178
db.executescript(
179179
"""
180-
PRAGMA journal_mode=WAL;
181180
PRAGMA synchronous = 1; -- aka NORMAL, recommended when using WAL
182181
PRAGMA temp_store = 2; -- stop writing small files to disk, use mem
183182
PRAGMA busy_timeout = 15000;
184183
PRAGMA foreign_keys = ON;
185-
PRAGMA auto_vacuum = INCREMENTAL;
186184
PRAGMA cache_size = -4000;
187185
"""
188186
)
@@ -199,12 +197,10 @@ def _get_temp_local_metadata_db_connection():
199197
db.row_factory = _make_dicts
200198
db.executescript(
201199
"""
202-
PRAGMA journal_mode=WAL;
203200
PRAGMA synchronous = 1; -- aka NORMAL, recommended when using WAL
204201
PRAGMA temp_store = 2; -- stop writing small files to disk, use mem
205202
PRAGMA busy_timeout = 15000;
206203
PRAGMA foreign_keys = ON;
207-
PRAGMA auto_vacuum = INCREMENTAL;
208204
PRAGMA cache_size = -4000;
209205
"""
210206
)

pioreactorui/tasks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def pio_run(*args: str, env: dict[str, str] = {}) -> bool:
8989

9090
@huey.task()
9191
def add_new_pioreactor(new_pioreactor_name: str, version: str, model: str) -> bool:
92-
logger.info(f"Adding new pioreactor {new_pioreactor_name}, {model} {version}")
93-
result = run(
94-
[PIO_EXECUTABLE, "workers", "add", new_pioreactor_name, "-v", version, "-m", model],
95-
)
96-
return result.returncode == 0
92+
command = [PIO_EXECUTABLE, "workers", "add", new_pioreactor_name, "-v", version, "-m", model]
93+
logger.info(f"Executing `{join(command)}`")
94+
result = run_and_check_call(command)
95+
print(result)
96+
return True
9797

9898

9999
@huey.task()

pioreactorui/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def scrub_to_valid(value: str) -> str:
4444

4545
def is_valid_unix_filename(filename: str) -> bool:
4646
return (
47-
bool(re.fullmatch(r"[a-zA-Z0-9._-]+", filename))
47+
bool(re.fullmatch(r"[\sa-zA-Z0-9._-]+", filename))
4848
and "/" not in filename
4949
and "\0" not in filename
5050
)

pioreactorui/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44

55
# pioreactorui version
6-
__version__ = "25.2.10"
6+
__version__ = "25.2.10.dev0"
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)