pretty print DB

This commit is contained in:
boyska 2017-01-17 16:54:29 +01:00
parent b6e9875977
commit 11d92b2139

View file

@ -23,7 +23,7 @@ class EventModel(object):
def reload(self): def reload(self):
if self.db is not None: if self.db is not None:
self.db.close() self.db.close()
self.db = TinyDB(self.uri) self.db = TinyDB(self.uri, indent=2)
self.actions = self.db.table('actions') self.actions = self.db.table('actions')
self.alarms = self.db.table('alarms') self.alarms = self.db.table('alarms')