From 114f24678d498b84de24de2fd2987446b6fd6c26 Mon Sep 17 00:00:00 2001 From: mogad0n Date: Thu, 17 Sep 2020 16:42:16 +0530 Subject: [PATCH] fix broken lastdose --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index d82f444..f05f4d9 100644 --- a/plugin.py +++ b/plugin.py @@ -226,7 +226,7 @@ class Tripsit(callbacks.Plugin): since_dose = time - dose_time since_dose_seconds = since_dose.total_seconds() since_dose_formatted = utils.str.format('%T', since_dose_seconds) - re = f"You last dosed {lastdose['dose']} of {lastdose['drug_and_method']} at {dose_time} UTC, {since_dose_formatted} ago" + re = f"You last dosed {lastdose['dose']} of {lastdose['drug_name'] }at {dose_time} UTC, {since_dose_formatted} ago" irc.reply(re) else: irc.error(f'No last dose saved for {msg.nick}')