Skip to content

Commit

Permalink
fix skip tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Dec 9, 2023
1 parent 93bda81 commit 04d0a51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ def get_ignored_tables(
connection.skip_tables,
list,
):
if isinstance(connection.skip_tables, dynaconf.vendor.box.box_list.BoxList):
return connection.skip_tables.to_list()[0]
if len(connection.skip_tables) < 1:
return []
elif isinstance(connection.skip_tables, dynaconf.vendor.box.box_list.BoxList):
return connection.skip_tables.to_list()
return connection.skip_tables
else:
return []
Expand Down

0 comments on commit 04d0a51

Please sign in to comment.