ratp: Fix func call to attribute
This commit is contained in:
parent
8ae7cbb593
commit
b1f76c7c3e
@ -11,7 +11,7 @@ from PIL import Image, ImageDraw, ImageFont
|
|||||||
|
|
||||||
def whenStr(date, now):
|
def whenStr(date, now):
|
||||||
if date < now + timedelta(days=1):
|
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):
|
elif date < now + timedelta(days=7):
|
||||||
weekday = date.weekday()
|
weekday = date.weekday()
|
||||||
if weekday == 0:
|
if weekday == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user