Updated url.
This commit is contained in:
		
							parent
							
								
									a11a57cbbf
								
							
						
					
					
						commit
						6c887f28e6
					
				@ -47,7 +47,8 @@ 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'] = datetime.now()
 | 
				
			||||||
        return self.db[table].insert(dict(data))
 | 
					        data = json.loads(json.dumps(data))
 | 
				
			||||||
 | 
					        return self.db[table].insert(data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def find(self,table,data=None):
 | 
					    def find(self,table,data=None):
 | 
				
			||||||
        if not data:
 | 
					        if not data:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user