mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-09 10:57:23 +02:00
Remove extra_tables.
This commit is contained in:
@@ -772,13 +772,9 @@ class NetworkPortal(Table):
|
|||||||
created_at = Column("integer")
|
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()
|
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 = {}
|
tables = {}
|
||||||
for name, obj in g.items():
|
for name, obj in g.items():
|
||||||
if not inspect.isclass(obj):
|
if not inspect.isclass(obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user