Browse Source

Reset to OrderedDict on new day cleanup

While originally created as an OrderedDict, some data tables
were reset to a basic dictionary on a #newday command.

Change-Id: I62539a8c7130eac5eb666af019b7c94078666656
changes/77/670577/1
Thierry Carrez 2 years ago
parent
commit
170c75cd16
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ptgbot/db.py

+ 3
- 3
ptgbot/db.py View File

@ -188,9 +188,9 @@ class PTGDataBase():
self.save()
def new_day_cleanup(self):
self.data['now'] = {}
self.data['next'] = {}
self.data['location'] = {}
self.data['now'] = OrderedDict()
self.data['next'] = OrderedDict()
self.data['location'] = OrderedDict()
self.clean_motd()
def empty(self):


Loading…
Cancel
Save