From 32f8ae5c81713807faeaaf8e37dbcb0c9027a7b1 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Wed, 3 Oct 2018 16:16:40 +0530 Subject: [PATCH] Fix count filter load --- frappe/client.py | 3 ++- frappe/public/less/flex.less | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/client.py b/frappe/client.py index 0be029599a..eb32116267 100644 --- a/frappe/client.py +++ b/frappe/client.py @@ -35,7 +35,8 @@ def get_list(doctype, fields=None, filters=None, order_by=None, @frappe.whitelist() def get_count(doctype, filters=None, debug=False, cache=False): - return frappe.db.count(doctype, filters, debug, cache) + + return frappe.db.count(doctype, json.loads(filters), debug, cache) @frappe.whitelist() def get(doctype, name=None, filters=None, parent=None): diff --git a/frappe/public/less/flex.less b/frappe/public/less/flex.less index 336cff38e4..8dad8bd567 100644 --- a/frappe/public/less/flex.less +++ b/frappe/public/less/flex.less @@ -3,6 +3,7 @@ } .flex-column { + display: flex; flex-direction: column; }