Skip to content
Snippets Groups Projects

MAINT: refactor set_location

Merged Henrik tom Wörden requested to merge f-location into main
All threads resolved!
Files
2
@@ -37,7 +37,7 @@ def _accept_return_request(loan):
# This changes the state from "return_requested" to "return_accepted".
set_property(loan, RETURN_ACCEPTED, get_timestamp())
items = set_location_of_borrowed_items(loan, RETURNLOCATION, update=False)
items = set_location_of_borrowed_items(loan, RETURNLOCATION)
if loan.get_property(CONTENT) is not None and loan.get_property(CONTENT).value:
for item in items:
if item.get_property(CONTENT) is not None:
Loading