importhub stub

This commit is contained in:
Laura Klünder 2023-12-22 00:13:11 +01:00
parent fadbabf9bf
commit 4d97af63b3
4 changed files with 18 additions and 200 deletions

View file

@ -176,6 +176,9 @@ if len(INITIAL_BOUNDS) == 4:
else:
INITIAL_BOUNDS = None
HUB_API_BASE = config.get('c3nav', 'hub_api_base', fallback='').removesuffix('/')
HUB_API_SECRET = config.get('c3nav', 'hub_api_secret', fallback='')
_db_backend = config.get('database', 'backend', fallback='sqlite3')
DATABASES: dict[str, dict[str, str | int | Path]] = {
'default': env.db_url('C3NAV_DATABASE') if 'C3NAV_DATABASE' in env else {