Auto-update: Wed Jun 26 12:53:04 PDT 2024

This commit is contained in:
sanj 2024-06-26 12:53:04 -07:00
parent 359457cb09
commit 42abb57d30
2 changed files with 1 additions and 3 deletions
sijapi

View file

@ -109,8 +109,6 @@ class IncomingEmail(BaseModel):
class Location(BaseModel):
latitude: float
longitude: float

View file

@ -667,7 +667,7 @@ async def generate_banner(dt, location: Location = None, forecast: str = None, m
if location.display_name:
display_name += f"{location.display_name}"
else:
elif:
display_name += f"{location.road}, " if location.road else ""
display_name += f"the {location.neighbourhood} neighbourhood of " if location.neighbourhood else ""
display_name += f"the {location.suburb} suburb of " if location.suburb else ""