Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions isic/zip_download/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def zip_download_listing(
request: NinjaAuthHttpRequest,
):
# use repeatable read to ensure consistent results
cursor = connection.cursor()
cursor.execute("SET TRANSACTION ISOLATION LEVEL REPEATABLE READ")
with connection.cursor() as cursor:
cursor.execute("SET TRANSACTION ISOLATION LEVEL REPEATABLE READ")

token = request.auth["token"]
user, search = SearchQueryIn.from_token_representation(request.auth)
Expand Down