Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Jan 22, 2025
1 parent 84aba29 commit 179e508
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,11 @@ def get_by_gss(cls, gss, area_type="WMC"):

@classmethod
def get_by_name(cls, name, area_type="WMC"):
return cls.objects.filter(name__iexact=name, area_type__code=area_type).order_by("-mapit_generation_high").first()
return (
cls.objects.filter(name__iexact=name, area_type__code=area_type)
.order_by("-mapit_generation_high")
.first()
)

def fit_bounds(self):
"""
Expand Down

0 comments on commit 179e508

Please sign in to comment.