We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 708765b commit 6c05c8cCopy full SHA for 6c05c8c
1 file changed
webapp/store/logic.py
@@ -205,6 +205,7 @@ def convert_date(date_to_convert):
205
else:
206
return date_parsed.strftime("%-d %B %Y")
207
208
+
209
def convert_date_month_year(date_to_convert):
210
"""Convert date to month and year format: Month Year
211
@@ -252,7 +253,9 @@ def is_snap_old(last_updated_date, old_threshold_years=2.0):
252
253
return {
254
"is_old": is_old,
255
"years_since_update": years_since_update,
- "last_updated_formatted": convert_date_month_year(last_updated_date),
256
+ "last_updated_formatted": convert_date_month_year(
257
+ last_updated_date
258
+ ),
259
}
260
except (ValueError, TypeError):
261
# If we can't parse the date, assume it's not old
0 commit comments