feat: use pydantic mypy plugin to have improved linting of models (#3311)

This commit is contained in:
dni ⚡
2025-08-19 11:37:00 +02:00
committed by GitHub
parent 2daddf8b74
commit 67dc096909
5 changed files with 66 additions and 49 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ async def api_download_backup() -> FileResponse:
pg_backup_filename = f"{settings.lnbits_data_folder}/lnbits-database.dmp"
is_pg = db_url and db_url.startswith("postgres://")
if is_pg:
if is_pg and db_url:
p = urlparse(db_url)
command = (
f"pg_dump --host={p.hostname} "