Skip to content

Commit

Permalink
Fix missing f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Jun 14, 2024
1 parent 7dfd9b6 commit 53ff617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ralph/lib/polymorphic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def get_database_quote_type() -> str:
return '"'
# mysql uses different quotes than postgres
q = get_database_quote_type()

through_table_name = through_table._meta.db_table # type: str
fields = {
field for field in through_table._meta.fields
Expand All @@ -211,7 +210,7 @@ def get_database_quote_type() -> str:
)
condition_remote = (
f'{q}{remote_table}{q}.{q}id{q}'
' = {q}{through_table_name}{q}.{q}{target_column_name}{q}'
f' = {q}{through_table_name}{q}.{q}{target_column_name}{q}'
)
query = query.extra(
tables=[f'{q}{remote_table}{q}', f'{q}{through_table_name}{q}'],
Expand Down

0 comments on commit 53ff617

Please sign in to comment.