Skip to content

Commit ae325ba

Browse files
author
Jesse De Loore
committed
linter
1 parent c3133c0 commit ae325ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asyncpg/connect_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,9 +917,9 @@ def _accept_read_only(should_be_read_only: bool):
917917
"""
918918
async def can_be_used(connection):
919919
settings = connection.get_settings()
920-
is_read_only = getattr(settings, 'default_transaction_read_only', 'off')
920+
is_readonly = getattr(settings, 'default_transaction_read_only', 'off')
921921

922-
if should_be_read_only and is_read_only == "on":
922+
if should_be_read_only and is_readonly == "on":
923923
return True
924924
return await _accept_in_hot_standby(should_be_read_only)(connection)
925925
return can_be_used

0 commit comments

Comments
 (0)