ratp: Fix func call to attribute

This commit is contained in:
nemunaire 2023-08-15 16:44:42 +02:00
parent 8ae7cbb593
commit b1f76c7c3e

View File

@ -11,7 +11,7 @@ from PIL import Image, ImageDraw, ImageFont
def whenStr(date, now):
if date < now + timedelta(days=1):
return date.hours() + "h" + date.minutes()
return f"{date.hour}h{date.minute}"
elif date < now + timedelta(days=7):
weekday = date.weekday()
if weekday == 0: