Skip to content

Commit fd85db3

Browse files
authored
Merge pull request #34 from hkir-dev/tdt_sprint_4
table name simplification applied
2 parents 11ef110 + 6db5d3d commit fd85db3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="tdta",
11-
version="0.1.0.dev4",
11+
version="0.1.0.dev5",
1212
description="The aim of this project is to provide taxonomy development tools custom actions.",
1313
long_description=README,
1414
long_description_content_type="text/markdown",

src/tdta/tdt_export.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
CONFLICT_TBL_EXT = "_conflict"
1515

16-
cas_tables = ["annotation", "labelset", "metadata", "annotation_transfer"]
16+
cas_table_names = ["annotation", "labelset", "metadata", "annotation_transfer"]
1717

1818

1919
def export_cas_data(sqlite_db: str, output_file: str, dataset_cache_folder: str = None):
@@ -168,7 +168,7 @@ def get_table_names(sqlite_db):
168168
columns = list(map(lambda x: x[0], cursor.description))
169169
table_column_index = columns.index('table')
170170
for row in rows:
171-
if str(row[table_column_index]) in cas_tables:
171+
if str(row[table_column_index]) in cas_table_names:
172172
cas_tables.append(str(row[table_column_index]))
173173
return cas_tables
174174

0 commit comments

Comments
 (0)