Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Dec 19, 2023
1 parent ee68a41 commit 18f4741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ref_geo/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get_area_types():
query = select(BibAreasTypes)
# GET ONLY INFO FOR A SPECIFIC CODE
if type_code:
code_exists = db.session.scalars(
code_exists = db.session.execute(
select(BibAreasTypes).where(BibAreasTypes.type_code == type_code)
).scalar_one_or_none()
if not code_exists:
Expand Down

0 comments on commit 18f4741

Please sign in to comment.