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