|
if librarian is None or not librarian.transfers_enabled: |
This returns true, which fails the break statement below. I think the idea here was to 'move on to the next one' but we don't do that as we run the query inside the function and so there is no state.