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