Skip to content

Commit

Permalink
Merge pull request #745 from kbevers/hent_srid
Browse files Browse the repository at this point in the history
Sørg for at `fire info srid` kan finde alle SRID'er
  • Loading branch information
kbevers authored Apr 25, 2024
2 parents f894838 + c247e79 commit 56d2c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fire/api/firedb/hent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import List, Optional
import re

from sqlalchemy import or_, and_
from sqlalchemy import func, or_, and_
from sqlalchemy.orm import aliased, joinedload
from sqlalchemy.orm.exc import NoResultFound

Expand Down Expand Up @@ -332,7 +332,7 @@ def hent_srid(self, sridid: str) -> Srid:
SRID ikke findes i databasen.
"""
srid_filter = str(sridid).upper()
return self.session.query(Srid).filter(Srid.name == srid_filter).one()
return self.session.query(Srid).filter(func.upper(Srid.name) == srid_filter).one()

def hent_srider(self, namespace: Optional[str] = None) -> List[Srid]:
"""
Expand Down

0 comments on commit 56d2c7d

Please sign in to comment.