Fix linting issue

This commit is contained in:
Christopher C. Wells 2021-07-31 20:25:25 -07:00 committed by Christopher Charbonneau Wells
parent 273c365bef
commit 51c70c1746
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ def datetime_short(date):
date_string = _('Today') date_string = _('Today')
time_string = formats.date_format(date, format='TIME_FORMAT') time_string = formats.date_format(date, format='TIME_FORMAT')
elif now.year == date.year: elif now.year == date.year:
date_string = formats.date_format(date, format='SHORT_MONTH_DAY_FORMAT') date_string = formats.date_format(date,
format='SHORT_MONTH_DAY_FORMAT')
time_string = formats.date_format(date, format='TIME_FORMAT') time_string = formats.date_format(date, format='TIME_FORMAT')
else: else:
date_string = formats.date_format(date, format='SHORT_DATETIME_FORMAT') date_string = formats.date_format(date, format='SHORT_DATETIME_FORMAT')