From 15a52bc75c46300c0c1bdff1e9f06625e441bd85 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 2 Jan 2025 20:41:09 +0100 Subject: [PATCH] Updated url. --- src/metriki/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):