Skip to content

Commit

Permalink
fix: case where string is passed to dborg one func
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 24, 2024
1 parent ea017da commit e59f035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ async def one(cls, db: Connection, org_identifier: int | str) -> Self:
""",
{"org_identifier": org_identifier.lower()},
)
db_org = await cur.fetchone()
else:
await cur.execute(
"""
Expand All @@ -309,7 +310,6 @@ async def one(cls, db: Connection, org_identifier: int | str) -> Self:
""",
{"org_identifier": org_identifier},
)

db_org = await cur.fetchone()

if db_org is None:
Expand Down

0 comments on commit e59f035

Please sign in to comment.