From 57aec2710f7a9657bfdf5cd3c11c6965479dc52a Mon Sep 17 00:00:00 2001 From: john681611 Date: Thu, 5 Oct 2023 10:22:07 +0100 Subject: [PATCH] linting fixes --- application/database/db.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/application/database/db.py b/application/database/db.py index 66306b45a..0ca2d0aca 100644 --- a/application/database/db.py +++ b/application/database/db.py @@ -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 "", @@ -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 "", @@ -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 "",