Handle rocket launches with precision set to year

This commit is contained in:
Edward Betts 2023-11-23 21:23:29 +00:00
parent 26a355aa19
commit 44fcf46178

View file

@ -42,6 +42,8 @@ def format_time(time_str: str, net_precision: str) -> tuple[str, str | None]:
# Format the date based on precision
time_format: str | None = None
field2 = None
if net_precision == "Year":
time_format = "%Y"
if net_precision == "Month":
time_format = "%b %Y"
if net_precision == "Week":