From c96e81fd3ceb03fe94e71277a0b5ab39cf320f69 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 18:13:06 +0100 Subject: [PATCH] modules/CommandCourseIsMeh.py --- modules/CommandCourseIsMeh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/CommandCourseIsMeh.py b/modules/CommandCourseIsMeh.py index c4963a4..cc66c17 100644 --- a/modules/CommandCourseIsMeh.py +++ b/modules/CommandCourseIsMeh.py @@ -24,7 +24,7 @@ class CommandCourseIsMeh(AbstractCommand): def __init__(self, team_id, datadir): super().__init__(team_id) self.datadir = datadir - self.course_stats = dict() + self.course_stats = {} def on_POST(self, request, data): @@ -65,7 +65,7 @@ class CommandCourseIsMeh(AbstractCommand): def meh_courses_dumpstats(self): stats = self.course_stats.copy() - self.course_stats = dict() + self.course_stats = {} self.bot.dump_stats_json(stats, self.datadir+"course_stats-"+self.TEAM_ID+".json", cleandoc(""" This week's ``/course-is-meh`` -stats #mmstats. Use this command in a course channel to increment the counter if the course is currently suboptimal for you. This command produces no output in that channel. -- 2.43.0