fix: correct sql output format in CRM patch (backport #32213) (#32214)

fix: correct sql output format in CRM patch (#32213)

(cherry picked from commit 97977cdb4b)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-09-14 19:21:04 +05:30
committed by GitHub
parent 740c17c231
commit fed23536dc

View File

@@ -12,7 +12,7 @@ def execute():
frappe.qb.from_(dt)
.select(dt.name, dt.notes, dt.modified_by, dt.modified)
.where(dt.notes.isnotnull() & dt.notes != "")
).run()
).run(as_dict=True)
for d in records:
if strip_html(cstr(d.notes)).strip():