Prechádzať zdrojové kódy

assign method call to variable to aid debugging

Daniel Sheffield 3 rokov pred
rodič
commit
6066c600b6
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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))