Updated url.
This commit is contained in:
parent
15a52bc75c
commit
85735c4dfc
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user