浏览代码

assign method call to variable to aid debugging

Daniel Sheffield 3 年之前
父节点
当前提交
6066c600b6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/db_utils.py

+ 2 - 1
app/db_utils.py

@@ -133,7 +133,8 @@ class QueryManager(object):
             ), date, store)
 
     def unique_suggestions(self, name, **kwargs):
-        return unique_suggestions(self.cursor, get_transactions_statement(), name, self.display, **kwargs)
+        statement = get_transactions_statement()
+        return unique_suggestions(self.cursor, statement, name, self.display, **kwargs)
 
     def insert_new_product(self, product, category, group):
         self.cursor.execute(get_insert_product_statement(product, category, group))