From 6c887f28e6cf95f6a45bd92f0e4e4ec3c370a5ff Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 2 Jan 2025 20:40:21 +0100 Subject: [PATCH] Updated url. --- src/metriki/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/metriki/app.py b/src/metriki/app.py index f924a34..f0c6556 100644 --- a/src/metriki/app.py +++ b/src/metriki/app.py @@ -47,7 +47,8 @@ class BaseView(web.View): def insert(self, table, data): data['ip'] = self.ip data['created'] = datetime.now() - return self.db[table].insert(dict(data)) + data = json.loads(json.dumps(data)) + return self.db[table].insert(data) def find(self,table,data=None): if not data: