Added API for fetching external database, removed parameters structure,

This commit is contained in:
Donkie
2024-05-12 12:14:25 +02:00
parent 595fd82b56
commit cbaa7b81df
6 changed files with 127 additions and 48 deletions

View File

@@ -354,7 +354,7 @@ def check_write_permissions() -> None:
# Try fixing it by chowning the directory to the current user
logger.warning("Data directory is not writable, trying to fix it...")
if not chown_dir(get_data_dir()) or not can_write_to_data_dir():
if not chown_dir(str(get_data_dir())) or not can_write_to_data_dir():
uid = os.getuid()
gid = os.getgid()