Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Oct 5, 2023
1 parent 18214c5 commit 6adc7b2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions application/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ def add_dbnode(self, dbnode: Node):
"doctype": dbnode.ntype,
"document_id": dbnode.id,
"description": dbnode.description or "",
"tags": [dbnode.tags] if isinstance(dbnode.tags, str) else dbnode.tags,
"tags": [dbnode.tags]
if isinstance(dbnode.tags, str)
else dbnode.tags,
"hyperlink": "", # dbnode.hyperlink or "",
"version": dbnode.version or "",
"section": dbnode.section or "",
Expand All @@ -361,7 +363,9 @@ def add_dbnode(self, dbnode: Node):
"document_id": dbnode.id,
"description": dbnode.description,
"links": [], # dbnode.links,
"tags": [dbnode.tags] if isinstance(dbnode.tags, str) else dbnode.tags,
"tags": [dbnode.tags]
if isinstance(dbnode.tags, str)
else dbnode.tags,
"metadata": "{}", # dbnode.metadata,
"hyperlink": "", # dbnode.hyperlink or "",
"version": dbnode.version or "",
Expand All @@ -380,7 +384,9 @@ def add_dbnode(self, dbnode: Node):
"document_id": dbnode.id,
"description": dbnode.description,
"links": [], # dbnode.links,
"tags": [dbnode.tags] if isinstance(dbnode.tags, str) else dbnode.tags,
"tags": [dbnode.tags]
if isinstance(dbnode.tags, str)
else dbnode.tags,
"metadata": "{}", # dbnode.metadata,
"hyperlink": "", # dbnode.hyperlink or "",
"version": dbnode.version or "",
Expand Down

0 comments on commit 6adc7b2

Please sign in to comment.