Skip to content

Commit

Permalink
fix: restore old format in the get_configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Feb 20, 2024
1 parent dfd6158 commit 4d85846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eox_tenant/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_configurations(self, domain):
configurations = {}

with connection.cursor() as cursor:
cursor.execute(f"""
cursor.execute("""
SELECT
eox_config.id,
eox_config.external_key,
Expand All @@ -132,7 +132,7 @@ def get_configurations(self, domain):
eox_config.meta
FROM eox_tenant_tenantconfig eox_config
WHERE eox_config.id = (SELECT eox_tenant_route.config_id from eox_tenant_route
WHERE eox_tenant_route.domain={domain})""")
WHERE eox_tenant_route.domain=%s)""", [domain])

# Using fetchone since the query will return one configuration per domain at the most.
row = cursor.fetchone()
Expand Down

0 comments on commit 4d85846

Please sign in to comment.