Updated url.

This commit is contained in:
retoor 2025-01-02 20:42:10 +01:00
parent 15a52bc75c
commit 85735c4dfc

View File

@ -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)