Esempio n. 1
0
 def addlog(self, bicycle, manage):
     log = Logs()
     log.name = bicycle.name
     log.address = bicycle.address
     log.lon = bicycle.lon
     log.lat = bicycle.lat
     log.bdlon = bicycle.bdlon
     log.bdlat = bicycle.bdlat
     log.num = bicycle.num
     log.code = bicycle.code
     log.localcode = bicycle.localcode
     log.zone_id = bicycle.zone_id
     log.version = self.version
     log.updatetime = datetime.datetime.utcnow()
     log.manage_id = manage
     session.add(log)