Fixed typo

This commit is contained in:
Mark Qvist 2022-05-18 00:47:29 +02:00
parent 2b43436f56
commit ecc9e84bc2

View File

@ -321,7 +321,7 @@ def pretty_date(time=False):
if second_diff < 3600: if second_diff < 3600:
return str(int(second_diff / 60)) + " minutes" return str(int(second_diff / 60)) + " minutes"
if second_diff < 7200: if second_diff < 7200:
return "an hour ago" return "an hour"
if second_diff < 86400: if second_diff < 86400:
return str(int(second_diff / 3600)) + " hours" return str(int(second_diff / 3600)) + " hours"
if day_diff == 1: if day_diff == 1: