chore: update python packages + formatting + cleanup (#3221)

This commit is contained in:
dni ⚡
2025-07-08 10:17:27 +02:00
parent c4c03d96a3
commit a16078a6ba
53 changed files with 1159 additions and 576 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import argparse
import os
import sqlite3
import sys
from typing import List, Optional
from typing import Optional
from lnbits.settings import settings
@@ -108,7 +108,7 @@ def insert_to_pg(query, data):
connection.close()
def migrate_core(file: str, exclude_tables: Optional[List[str]] = None):
def migrate_core(file: str, exclude_tables: Optional[list[str]] = None):
if exclude_tables is None:
exclude_tables = []
print(f"Migrating core: {file}")
@@ -124,7 +124,7 @@ def migrate_ext(file: str):
print(f"✅ Migrated ext: {schema}")
def migrate_db(file: str, schema: str, exclude_tables: Optional[List[str]] = None):
def migrate_db(file: str, schema: str, exclude_tables: Optional[list[str]] = None):
# first we check if this file exists:
if exclude_tables is None:
exclude_tables = []