Why frappe.db.count(doctype,filters) does not return a number?

I tried to use frappe.db.count(doctype, filters) and use the value in a condition, and I always find a false condition. So after several debugging, I noticed that frappe.db.count(doctype, filters) does not return a number it returns [object promised]. any help would be appreciated.

1 Like

hey did you find any solution?