Updated url.
This commit is contained in:
parent
15a52bc75c
commit
85735c4dfc
@ -34,7 +34,7 @@ class BaseView(web.View):
|
|||||||
key=key,
|
key=key,
|
||||||
value=json.dumps(value,default=str),
|
value=json.dumps(value,default=str),
|
||||||
ip=self.ip,
|
ip=self.ip,
|
||||||
created=datetime.now()
|
created=str(datetime.now())
|
||||||
),['id','key'])
|
),['id','key'])
|
||||||
return record
|
return record
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ class BaseView(web.View):
|
|||||||
|
|
||||||
def insert(self, table, data):
|
def insert(self, table, data):
|
||||||
data['ip'] = self.ip
|
data['ip'] = self.ip
|
||||||
data['created'] = datetime.now()
|
data['created'] = str(datetime.now())
|
||||||
data = json.loads(json.dumps(data,default=str))
|
data = json.loads(json.dumps(data,default=str))
|
||||||
return self.db[table].insert(data)
|
return self.db[table].insert(data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user