Skip to content

Commit e8d6941

Browse files
committed
Revert one file.
1 parent faf7e3d commit e8d6941

File tree

1 file changed

+4
-4
lines changed
  • python/cross_service/aurora_rest_lending_library/library_api

1 file changed

+4
-4
lines changed

python/cross_service/aurora_rest_lending_library/library_api/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def list_books_by_author(author_id):
9393
:param author_id: The ID of the author to query.
9494
:return: The list of books written by the specified author.
9595
"""
96-
author_id = int(urllib.parse.unquote_plus(author_id))
96+
author_id = int(urllib.parse.unquote(author_id))
9797
return {"books": get_storage().get_books(author_id=author_id)}
9898

9999

@@ -151,7 +151,7 @@ def delete_patron(patron_id):
151151
152152
:param patron_id: The ID of the patron to remove.
153153
"""
154-
patron_id = int(urllib.parse.unquote_plus(patron_id))
154+
patron_id = int(urllib.parse.unquote(patron_id))
155155
get_storage().delete_patron(patron_id)
156156

157157

@@ -185,8 +185,8 @@ def book_lending(book_id, patron_id):
185185
:param book_id: The ID of the book.
186186
:param patron_id: The ID of the patron.
187187
"""
188-
book_id = int(urllib.parse.unquote_plus(book_id))
189-
patron_id = int(urllib.parse.unquote_plus(patron_id))
188+
book_id = int(urllib.parse.unquote(book_id))
189+
patron_id = int(urllib.parse.unquote(patron_id))
190190
if app.current_request.method == "PUT":
191191
get_storage().borrow_book(book_id, patron_id)
192192
elif app.current_request.method == "DELETE":

0 commit comments

Comments
 (0)