fix broken lastdose
This commit is contained in:
parent
114f24678d
commit
bcd99b7532
@ -226,7 +226,7 @@ class Tripsit(callbacks.Plugin):
|
|||||||
since_dose = time - dose_time
|
since_dose = time - dose_time
|
||||||
since_dose_seconds = since_dose.total_seconds()
|
since_dose_seconds = since_dose.total_seconds()
|
||||||
since_dose_formatted = utils.str.format('%T', since_dose_seconds)
|
since_dose_formatted = utils.str.format('%T', since_dose_seconds)
|
||||||
re = f"You last dosed {lastdose['dose']} of {lastdose['drug_name'] }at {dose_time} UTC, {since_dose_formatted} ago"
|
re = f"You last dosed {lastdose['dose']} of {lastdose['drug'] }at {dose_time} UTC, {since_dose_formatted} ago"
|
||||||
irc.reply(re)
|
irc.reply(re)
|
||||||
else:
|
else:
|
||||||
irc.error(f'No last dose saved for {msg.nick}')
|
irc.error(f'No last dose saved for {msg.nick}')
|
||||||
|
Loading…
Reference in New Issue
Block a user