From 5ebe917689c8f39440cdfd52e7d3d474b7ed4b38 Mon Sep 17 00:00:00 2001 From: Yizhe Shen Date: Fri, 6 Feb 2015 20:19:34 -0500 Subject: [PATCH] Added dropLevelTable method in Storage. (Issue #91) --- plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugin.py b/plugin.py index 024c73e..fc7f969 100644 --- a/plugin.py +++ b/plugin.py @@ -2387,6 +2387,14 @@ class TriviaTime(callbacks.Plugin): except: pass c.close() + + def dropLevelTable(self): + c = self.conn.cursor() + try: + c.execute('''DROP TABLE trivialevel''') + except: + pass + c.close() def getRandomQuestionNotAsked(self, channel, roundStart): c = self.conn.cursor()