Auto-update: Wed Jun 26 12:53:04 PDT 2024
This commit is contained in:
parent
359457cb09
commit
42abb57d30
2 changed files with 1 additions and 3 deletions
sijapi
|
@ -109,8 +109,6 @@ class IncomingEmail(BaseModel):
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
class Location(BaseModel):
|
||||
latitude: float
|
||||
longitude: float
|
||||
|
|
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue