From 428b7f841a221ea783e660428c47f2cb938d6abb Mon Sep 17 00:00:00 2001 From: Phil Owen <19691521+PhillipsOwen@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:26:59 -0500 Subject: [PATCH] fixing string formatting --- src/common/geopoints_utilities.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/geopoints_utilities.py b/src/common/geopoints_utilities.py index 859953e..1cdbbd9 100644 --- a/src/common/geopoints_utilities.py +++ b/src/common/geopoints_utilities.py @@ -594,12 +594,12 @@ def generate_six_hour_time_advisories_from_range(advisory_range) -> list: list_of_advisories = [] for inc in range(start_adv, stop_adv): - list_of_advisories.append(f'{inc: 02d}') + list_of_advisories.append(f'{inc:02d}') list_of_advisories = [i for i in list_of_advisories if int(i) > 0] # Should we retain the input value? - list_of_advisories.append(f'{stop_adv: 02d}') + list_of_advisories.append(f'{stop_adv:02d}') # A last ditch sort to be sure list_of_advisories.sort() @@ -677,12 +677,12 @@ def generate_six_hour_time_advisories_from_offset(str_time, offset) -> list: range_values.sort() # sorts ascending order for inc in range(*range_values): - list_of_advisories.append(f'{stop_advisory + inc: 02d}') + list_of_advisories.append(f'{stop_advisory + inc:02d}') list_of_advisories = [i for i in list_of_advisories if int(i) >= 0] # Keep the input value? - list_of_advisories.append(f'{stop_advisory: 02d}') + list_of_advisories.append(f'{stop_advisory:02d}') # A last ditch sort to be sure list_of_advisories.sort()