Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Jan 24, 2024
1 parent 2416277 commit 8601d01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions application/data_access/digital_land_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def get_datasets_with_data_by_typology(
DatasetOrm,
func.count(func.distinct(EntityOrm.entity).label(("entity_count"))),
)
query = query.filter(
DatasetOrm.typology == typology, DatasetOrm.dataset == EntityOrm.dataset
)
query = query.filter(DatasetOrm.typology == typology)
query = query.group_by(DatasetOrm.dataset)
datasets = query.all()
return [DatasetModel.from_orm(ds.DatasetOrm) for ds in datasets]
Expand Down
1 change: 0 additions & 1 deletion application/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def home(request: Request):

@app.get("/health", response_class=JSONResponse, include_in_schema=False)
def health(session: Session = Depends(get_session)):

from sqlalchemy.sql import select

try:
Expand Down

0 comments on commit 8601d01

Please sign in to comment.