From 42abb57d30b34b573ecb880ac3438448cc6df0c0 Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:53:04 -0700 Subject: [PATCH] Auto-update: Wed Jun 26 12:53:04 PDT 2024 --- sijapi/classes.py | 2 -- sijapi/routers/note.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sijapi/classes.py b/sijapi/classes.py index e572c6c..14f7e21 100644 --- a/sijapi/classes.py +++ b/sijapi/classes.py @@ -109,8 +109,6 @@ class IncomingEmail(BaseModel): - - class Location(BaseModel): latitude: float longitude: float diff --git a/sijapi/routers/note.py b/sijapi/routers/note.py index afd2d76..318faf9 100644 --- a/sijapi/routers/note.py +++ b/sijapi/routers/note.py @@ -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 ""