Skip to content

Commit

Permalink
add comment'
Browse files Browse the repository at this point in the history
  • Loading branch information
pidgezero-one committed May 25, 2024
1 parent c2b5c90 commit 99faae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openlibrary/plugins/upstream/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,8 @@ class my_follows(delegate.page):
def GET(self, username, key=""):
i = web.input(page=1)
page_size = 25

# Force invalid page query params to default to the first page
page = 1 if not i.page.isdigit() else max(1, int(i.page))
offset = (page - 1) * page_size

Expand Down

0 comments on commit 99faae5

Please sign in to comment.