Skip to content

Commit

Permalink
table name simplification applied
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Mar 13, 2024
1 parent dd2fe6e commit 6db5d3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="tdta",
version="0.1.0.dev4",
version="0.1.0.dev5",
description="The aim of this project is to provide taxonomy development tools custom actions.",
long_description=README,
long_description_content_type="text/markdown",
Expand Down
4 changes: 2 additions & 2 deletions src/tdta/tdt_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

CONFLICT_TBL_EXT = "_conflict"

cas_tables = ["annotation", "labelset", "metadata", "annotation_transfer"]
cas_table_names = ["annotation", "labelset", "metadata", "annotation_transfer"]


def export_cas_data(sqlite_db: str, output_file: str, dataset_cache_folder: str = None):
Expand Down Expand Up @@ -168,7 +168,7 @@ def get_table_names(sqlite_db):
columns = list(map(lambda x: x[0], cursor.description))
table_column_index = columns.index('table')
for row in rows:
if str(row[table_column_index]) in cas_tables:
if str(row[table_column_index]) in cas_table_names:
cas_tables.append(str(row[table_column_index]))
return cas_tables

Expand Down

0 comments on commit 6db5d3d

Please sign in to comment.