Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions genquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ def total_rows(self):
# So instead, we run the query twice manually. This should
# perform only slightly worse.
# [1]: https://github.com/irods/irods/blob/4.2.6/plugins/database/src/general_query.cpp#L2393
self._total = Query(self.callback, self.columns, self.conditions, limit=0,
options=self.options|Option.RETURN_TOTAL_ROW_COUNT).total_rows()
self._total = self.copy(limit=0, options=self.options|Option.RETURN_TOTAL_ROW_COUNT).total_rows()
Comment thread
trel marked this conversation as resolved.
Outdated

return self._total

Expand Down