mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +00:00
opencdeserver - fix bug with DocumentVersions initialization
This commit is contained in:
@@ -981,7 +981,7 @@ class DOCDB(MyDB):
|
|||||||
RETURN d AS document
|
RETURN d AS document
|
||||||
"""
|
"""
|
||||||
results = tx.run(cypher, username=current_user.username, document_id=document_id)
|
results = tx.run(cypher, username=current_user.username, document_id=document_id)
|
||||||
document_versions = DocumentVersions({"documents": list()})
|
document_versions = DocumentVersions(documents=list())
|
||||||
for result in results:
|
for result in results:
|
||||||
document_json = self.node_to_json(result.get("document"))
|
document_json = self.node_to_json(result.get("document"))
|
||||||
document_version = self.get_document_version(document_id, document_json["version_index"], current_user)
|
document_version = self.get_document_version(document_id, document_json["version_index"], current_user)
|
||||||
|
|||||||
Reference in New Issue
Block a user