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

This commit is contained in:
dni ⚡ 2025-06-30 14:53:11 +02:00
parent c4c03d96a3
commit a16078a6ba
No known key found for this signature in database
GPG key ID: D1F416F29AD26E87
53 changed files with 1159 additions and 576 deletions

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 = []