Skip to content

Commit 7216118

Browse files
authored
Merge pull request #41 from brain-bican/author_annotation_fields
author_annotation_fields excluded if empty
2 parents d7786a3 + 3e57c3b commit 7216118

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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.dev11",
11+
version="0.1.0.dev12",
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-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def parse_annotation_data(cta, sqlite_db, table_name):
106106
for column in columns:
107107
if column not in obj_fields and column not in ["row_number", "message", "history"]:
108108
author_annotation_fields[column] = str(row[columns.index(column)])
109-
annotation.author_annotation_fields = author_annotation_fields
109+
if author_annotation_fields:
110+
annotation.author_annotation_fields = author_annotation_fields
110111

111112
annotations.append(annotation)
112113
cta.annotations = annotations

0 commit comments

Comments
 (0)