Exemplo n.º 1
0
 def updatelMVOccupied(self, id):
     logging.info("updatetwoWheelerOccupied update")
     session = self.create_session()
     result = session.query(ParkingLot).filter_by(lotId=id).first()
     result.lMVOccupied = result.lMVOccupied + 1
     session.commit()
     return result
Exemplo n.º 2
0
 def readRowFromTable(self, id):
     logging.info("ParkingDao read row")
     session = self.create_session()
     result = session.query(ParkingLot).filter_by(lotId=id).first()
     return result
Exemplo n.º 3
0
 def getDetails(self, vid):
     logging.info("VehicleDao read row")
     session = self.create_session()
     result = session.query(Vehicle).filter_by(vehicleId=vid).first()
     return result