diff options
author | 2019-04-22 01:11:15 +1000 | |
---|---|---|
committer | 2019-04-22 01:11:15 +1000 | |
commit | 1371511bb78e4ac8de6c0aceed9a977dd80b6306 (patch) | |
tree | 8e41ffdf51982cdef87a7a237bff41249cea2f64 | |
parent | Log reactions for later checking of behaviour analysis and anti-cheat checks. (diff) |
Add prepare_db docstring.
-rw-r--r-- | bot/seasons/easter/egg_hunt/cog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/easter/egg_hunt/cog.py b/bot/seasons/easter/egg_hunt/cog.py index 85615549..bbbecd7f 100644 --- a/bot/seasons/easter/egg_hunt/cog.py +++ b/bot/seasons/easter/egg_hunt/cog.py @@ -347,6 +347,8 @@ class EggHunt(commands.Cog): self.task.add_done_callback(self.task_cleanup) def prepare_db(self): + """Ensures database tables all exist and if not, creates them.""" + db = sqlite3.connect(DB_PATH) c = db.cursor() |