Skip to content

Commit 71fa131

Browse files
authored
Merge pull request #52 from brain-bican/docs
jinja documentation fixes
2 parents 86a40e7 + 85a4cbf commit 71fa131

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
requests
2-
cas-tools==0.0.1.dev44
2+
cas-tools==1.0.8
33
jinja2

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.dev22",
11+
version="0.1.0.dev23",
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/__main__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ def create_merge_operation_parser(subparsers):
8181

8282

8383
def create_docs_operation_parser(subparsers):
84-
parser_export = subparsers.add_parser("docs", add_help=False,
84+
parser_docs = subparsers.add_parser("docs", add_help=False,
8585
description="The documentation generation parser",
8686
help="Generates the taxonomy github pages docs.")
87-
parser_export.add_argument('-db', '--database', action='store', type=pathlib.Path, required=True,
87+
parser_docs.add_argument('-db', '--database', action='store', type=pathlib.Path, required=True,
8888
help="Database file path.")
89-
parser_export.add_argument('-o', '--output', action='store', type=pathlib.Path, required=True,
89+
parser_docs.add_argument('-o', '--output', action='store', type=pathlib.Path, required=True,
9090
help="Output file path.")
9191

9292

src/tdta/tdt_export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def parse_labelset_data(cta, sqlite_db, table_name):
185185
auto_fill_object_from_row(automated_annotation, renamed_columns, row)
186186
labelset.automated_annotation = automated_annotation
187187
# cast rank to int
188-
if labelset.rank:
188+
if labelset.rank and str(labelset.rank).isdigit():
189189
labelset.rank = int(labelset.rank)
190190
labelsets.append(labelset)
191191
cta.labelsets = labelsets

0 commit comments

Comments
 (0)