From 15bfb9b34e93f8a0ad506ca823a71f76f73eaef6 Mon Sep 17 00:00:00 2001 From: mogad0n Date: Mon, 11 Jan 2021 18:46:36 +0530 Subject: [PATCH] fix syntax --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 6d8d92e..93c502a 100644 --- a/plugin.py +++ b/plugin.py @@ -280,8 +280,8 @@ class Tripsit(callbacks.Plugin): since_dose = time - dose_time since_dose_seconds = since_dose.total_seconds() if history: - 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) + 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) irc.reply(re)