HOTFIX: paths in update_aliases
All checks were successful
Mypy / mypy (push) Successful in 1m14s
Pytest / pytest (3.12) (push) Successful in 1m18s
Pytest / pytest (3.13) (push) Successful in 1m13s
Pytest / pytest (3.14) (push) Successful in 1m15s
Ruff / ruff (push) Successful in 1m0s

This commit is contained in:
Justus Kuhlmann 2026-04-28 11:27:49 +02:00
commit 4e3327709e
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -27,7 +27,7 @@ def create_project(path: Path, uuid: str, owner: Union[str, None]=None, tags: Un
The code that was used to create the measurements.
"""
db_file = get_db_file(path)
db = os.path.join(path, db_file)
db = path / db_file
get(path, db_file)
conn = sqlite3.connect(db)
c = conn.cursor()
@ -67,7 +67,7 @@ def update_project_data(path: Path, uuid: str, prop: str, value: Union[str, None
"""
db_file = get_db_file(path)
get(path, db_file)
conn = sqlite3.connect(os.path.join(path, db_file))
conn = sqlite3.connect(path / db_file)
c = conn.cursor()
c.execute(f"UPDATE projects SET '{prop}' = '{value}' WHERE id == '{uuid}'")
conn.commit()
@ -77,9 +77,8 @@ def update_project_data(path: Path, uuid: str, prop: str, value: Union[str, None
def update_aliases(path: Path, uuid: str, aliases: list[str]) -> None:
db_file = get_db_file(path)
db = path / db_file
get(path, db_file)
known_data = _project_lookup_by_id(db, uuid)[0]
known_data = _project_lookup_by_id(path, uuid)[0]
known_aliases = known_data[1]
if aliases is None: