From 8b5d24f89a9a9b1a62326af49a808b3fd39e1eec Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Thu, 29 Mar 2018 10:21:00 +0530 Subject: [PATCH] fix minor variable call --- frappe/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database.py b/frappe/database.py index f0b55591c1..5ff4d2f004 100644 --- a/frappe/database.py +++ b/frappe/database.py @@ -544,7 +544,7 @@ class Database: from tabSingles where field in (%s) and doctype=%s""" \ % (', '.join(['%s'] * len(fields)), '%s'), tuple(fields) + (doctype,), as_dict=False, debug=debug) - r = self._cast_singles_result(doctype, result) + r = self._cast_singles_result(doctype, r) if as_dict: if r: