Skip to content

Commit

Permalink
Merge pull request #10325 from internetarchive/10041/hotfix-myloans-c…
Browse files Browse the repository at this point in the history
…ount

Fix My Loans count for My Books #10041
  • Loading branch information
mekarpeles authored Jan 13, 2025
2 parents be77d3d + e62dadf commit 4a7b634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/plugins/upstream/mybooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def render_template(self, mb):

if mb.me:
myloans = get_loans_of_user(mb.me.key)
loans = web.Storage({"docs": [], "total_results": len(loans)})
loans = web.Storage({"docs": [], "total_results": len(myloans)})
# TODO: should do in one web.ctx.get_many fetch
for loan in myloans:
# Book will be None if no OL edition exists for the book
Expand Down

0 comments on commit 4a7b634

Please sign in to comment.