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
This commit is contained in:
Thierry Carrez 2019-07-12 16:52:09 +02:00
parent a6e3c0bbbf
commit 170c75cd16
1 changed files with 3 additions and 3 deletions

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):