From 57790154d3f3946e538dd021e57f6bdd9cf9b995 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 27 Nov 2020 10:26:20 -0500 Subject: [PATCH] [F] Fix function call with incorrect key --- src/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.py b/src/commands.py index 2911983..851c2e5 100644 --- a/src/commands.py +++ b/src/commands.py @@ -190,7 +190,7 @@ def enable(update: Update, context: CallbackContext): return "*Error:* %s doesn't exist." % name # Start task - if not scheduler.start(user, database.reqs[user][name]): + if not scheduler.start(user, name): return "*Error:* %s is already enabled." % name return "Started!"