perf: drop total_comments

Can be done client side, also not used anywhere.
This commit is contained in:
Ankush Menat 2023-07-22 14:23:51 +05:30
parent 740fe1fc91
commit f989b83d33

View file

@ -110,7 +110,6 @@ def get_docinfo(doc=None, doctype=None, name=None):
"attachments": get_attachments(doc.doctype, doc.name),
"communications": communications_except_auto_messages,
"automated_messages": automated_messages,
"total_comments": len(json.loads(doc.get("_comments") or "[]")),
"versions": get_versions(doc),
"assignments": get_assignments(doc.doctype, doc.name),
"permissions": get_doc_permissions(doc),