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

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:40 +05:30
committed by GitHub
parent cbdc46b89e
commit 64aad88684

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():