diff --git a/src/metriki/app.py b/src/metriki/app.py index 527f260..81a82f4 100644 --- a/src/metriki/app.py +++ b/src/metriki/app.py @@ -47,6 +47,8 @@ class BaseView(web.View): def insert(self, table, data): data['ip'] = self.ip data['created'] = str(datetime.now()) + for key,value in data.items(): + data[key] = str(value) #data = json.loads(json.dumps(data,default=str)) return self.db[table].insert(data)