Skip to content

Commit

Permalink
fix: fix call to get_insights_
Browse files Browse the repository at this point in the history
limit was provided 2 times
  • Loading branch information
raphael0202 committed Aug 24, 2023
1 parent ca0963f commit 5d909b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ def on_get(self, req: falcon.Request, resp: falcon.Response):
)

offset: int = (page - 1) * count
insights = list(get_insights_(limit=count, offset=offset))
insights = list(get_insights_(offset=offset))

response["count"] = get_insights_(count=True)

Expand Down

0 comments on commit 5d909b9

Please sign in to comment.