Skip to content

Commit 802c9a8

Browse files
authored
Merge pull request #39 from brain-bican/author_annotation_fields
Author annotation fields
2 parents 8c1eb3a + 675461e commit 802c9a8

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.dev9",
11+
version="0.1.0.dev10",
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_table_names = ["annotation", "labelset", "metadata", "annotation_transfer"]
16+
cas_table_names = ["annotation", "labelset", "metadata", "annotation_transfer", "review"]
1717

1818

1919
def export_cas_data(sqlite_db: str, output_file: str, dataset_cache_folder: str = None):
@@ -102,7 +102,7 @@ def parse_annotation_data(cta, sqlite_db, table_name):
102102
author_annotation_fields = dict()
103103
obj_fields = vars(annotation)
104104
for column in columns:
105-
if column not in obj_fields and column not in ["row_number", "message"]:
105+
if column not in obj_fields and column not in ["row_number", "message", "history"]:
106106
author_annotation_fields[column] = str(row[columns.index(column)])
107107
annotation.author_annotation_fields = author_annotation_fields
108108

0 commit comments

Comments
 (0)