"PROP_Ambientes")])) # db.IntegerProperty() @ambientos prop.bathrooms = int(tryint( row[cnames.index("PROP_Banos")])) # db.IntegerProperty() prop.bedrooms = int(tryint( row[cnames.index("PROP_Dormitorios")])) # db.IntegerProperty() # AMENITIES FIELDS GROUP 1 prop.appurtenance = int(tryint( row[cnames.index("PROP_Dependencia")])) # db.IntegerProperty() prop.balcony = 0 # db.IntegerProperty() prop.doorman = 0 # db.IntegerProperty() prop.elevator = 0 # db.IntegerProperty() prop.fireplace = 0 # db.IntegerProperty() prop.furnished = int(tryint( row[cnames.index("PROP_Amoblado")])) # db.IntegerProperty() prop.garage = int(tryint( row[cnames.index("PROP_Cochera")])) # db.IntegerProperty() # AMENITIES FIELDS GROUP 2 prop.garden = int(tryint( row[cnames.index("PROP_Parque")])) # db.IntegerProperty() prop.grillroom = 0 # db.IntegerProperty() prop.gym = 0 # db.IntegerProperty() prop.live_work = 0 # db.IntegerProperty() prop.luxury = 0 # db.IntegerProperty() prop.pool = int(tryint( row[cnames.index("PROP_Pileta")])) # db.IntegerProperty() prop.terrace = int(tryint( row[cnames.index("PROP_Terraza")])) # db.IntegerProperty() # AMENITIES FIELDS GROUP 3 & YEAR BUILT prop.washer_dryer = 0 # db.IntegerProperty()
prop.area_indoor = int(random.randrange(30, 400)) # db.FloatProperty() prop.area_outdoor = int(random.randrange(30, 200)) # db.FloatProperty() # ROOMS FIELDS prop.rooms = int(random.randint(1, 10)) # db.IntegerProperty() prop.bathrooms = int(random.randint(1, 5)) # db.IntegerProperty() prop.bedrooms = int(random.randint(1, 7)) # db.IntegerProperty() # AMENITIES FIELDS GROUP 1 prop.appurtenance = int(random.randint(0, 1)) # db.IntegerProperty() prop.balcony = int(random.randint(0, 1)) # db.IntegerProperty() prop.doorman = int(random.randint(0, 1)) # db.IntegerProperty() prop.elevator = int(random.randint(0, 1)) # db.IntegerProperty() prop.fireplace = int(random.randint(0, 1)) # db.IntegerProperty() prop.furnished = int(random.randint(0, 1)) # db.IntegerProperty() prop.garage = int(random.randint(0, 1)) # db.IntegerProperty() # AMENITIES FIELDS GROUP 2 prop.garden = int(random.randint(0, 1)) # db.IntegerProperty() prop.grillroom = int(random.randint(0, 1)) # db.IntegerProperty() prop.gym = int(random.randint(0, 1)) # db.IntegerProperty() prop.live_work = int(random.randint(0, 1)) # db.IntegerProperty() prop.luxury = int(random.randint(0, 1)) # db.IntegerProperty() prop.pool = int(random.randint(0, 1)) # db.IntegerProperty() prop.terrace = int(random.randint(0, 1)) # db.IntegerProperty() # AMENITIES FIELDS GROUP 3 & YEAR BUILT prop.washer_dryer = int(random.randint(0, 1)) # db.IntegerProperty() prop.sum = int(random.randint(0, 1)) # db.IntegerProperty() prop.agua_corriente = int(random.randint(0, 1)) # db.IntegerProperty()