fix syntax
This commit is contained in:
parent
62a24b01ad
commit
15bfb9b34e
@ -280,7 +280,7 @@ class Tripsit(callbacks.Plugin):
|
||||
since_dose = time - dose_time
|
||||
since_dose_seconds = since_dose.total_seconds()
|
||||
if history:
|
||||
history = num2words(history, to='ordinal'):
|
||||
history = num2words(history, to='ordinal')
|
||||
re = utils.str.format("Your %i last dose was %s of %s via %s at %s %s, %T ago", history, dose, drug, method, str(dose_time), timezone, since_dose_seconds)
|
||||
else:
|
||||
re = utils.str.format("You last dosed %s of %s via %s at %s %s, %T ago", dose, drug, method, str(dose_time), timezone, since_dose_seconds)
|
||||
|
Loading…
Reference in New Issue
Block a user