From 953ef6b4aeea54ce1391b2e9a607df37dd3cb8aa Mon Sep 17 00:00:00 2001 From: gerlofvanek Date: Wed, 8 Apr 2026 20:52:05 +0200 Subject: [PATCH] Remove extra_tables. --- basicswap/db.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/basicswap/db.py b/basicswap/db.py index 330667f..4db59b9 100644 --- a/basicswap/db.py +++ b/basicswap/db.py @@ -772,13 +772,9 @@ class NetworkPortal(Table): created_at = Column("integer") -def extract_schema(extra_tables: list = None, input_globals: dict = None) -> dict: +def extract_schema(input_globals: dict = None) -> dict: g = (input_globals if input_globals else globals()).copy() - if extra_tables: - for table_class in extra_tables: - g[table_class.__name__] = table_class - tables = {} for name, obj in g.items(): if not inspect.isclass(obj):