We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d647d51 commit b10ff57Copy full SHA for b10ff57
1 file changed
api/well_inventory.py
@@ -25,7 +25,7 @@
25
from fastapi.responses import JSONResponse
26
from pydantic import ValidationError
27
from shapely import Point
28
-from sqlalchemy import select
+from sqlalchemy import select, and_
29
from sqlalchemy.exc import DatabaseError
30
from sqlalchemy.orm import Session
31
from starlette.status import (
@@ -332,7 +332,7 @@ async def well_inventory_csv(
332
# get project and add if does not exist
333
# BDMS-221 adds group_type
334
sql = select(Group).where(
335
- Group.group_type == "Monitoring Plan" and Group.name == project
+ and_(Group.group_type == "Monitoring Plan", Group.name == project)
336
)
337
group = session.scalars(sql).one_or_none()
338
if not group:
0 commit comments