Skip to content

Commit

Permalink
Remove debug printing #2714
Browse files Browse the repository at this point in the history
  • Loading branch information
iamleeg committed Jul 12, 2022
1 parent 271a455 commit 36cf45c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ def list_cases(self, page: int = None, limit: int = None, filter: str = None):
if limit <= 0:
raise PreconditionUnsatisfiedError("limit must be >0")
predicate = CaseController.parse_filter(filter)
print(f"predicate: {predicate}")
if predicate is None:
raise ValidationError("cannot understand query")
cases = self.store.fetch_cases(page, limit, predicate)
count = self.store.count_cases(predicate)
print(f"cases: {cases}")
nextPage = page + 1 if count > page * limit else None
return CasePage(cases, count, nextPage)

Expand Down

0 comments on commit 36cf45c

Please sign in to comment.