From 5434a4e9bca4406a61e6139560aa8e3ef34b4470 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 2 Jan 2025 20:46:33 +0100 Subject: [PATCH] Updated url. --- src/metriki/app.py | 2 ++ 1 file changed, 2 insertions(+) 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)