diff --git a/src/metriki/app.py b/src/metriki/app.py index f0c6556..c7a9aa5 100644 --- a/src/metriki/app.py +++ b/src/metriki/app.py @@ -47,7 +47,7 @@ class BaseView(web.View): def insert(self, table, data): data['ip'] = self.ip data['created'] = datetime.now() - data = json.loads(json.dumps(data)) + data = json.loads(json.dumps(data,default=str)) return self.db[table].insert(data) def find(self,table,data=None):