Skip to content

Commit f240365

Browse files
committed
Fixed bug in ListMixin count method.
1 parent a65803c commit f240365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickbooks/mixins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ def count(cls, where_clause="", qb=None):
237237
where_clause = "WHERE " + where_clause
238238

239239
select = "SELECT COUNT(*) FROM {0} {1}".format(
240-
cls.qbo_object_name, where_clause, qb=qb)
240+
cls.qbo_object_name, where_clause)
241241

242-
json_data = cls.query(select)
242+
json_data = cls.query(select, qb=qb)
243243

244244
if "totalCount" in json_data["QueryResponse"]:
245245
return json_data["QueryResponse"]["totalCount"]

0 commit comments

Comments
 (0)