def add_listing_checker_task(listing_id):
  listing = listing_service.get_listing(listing_id)

  return web_scraper_service.add_listing_checker(listing).pk
def delete_listing_checker_task(listing_id):
  listing = listing_service.get_listing(listing_id)
  web_scraper_service.delete_listing_checker(listing)
Esempio n. 3
0
def associate_listing_with_apartment_task(listing_id, apartment_id):
  listing = listing_service.get_listing(listing_id)
  apartment = apartment_service.get_apartment(apartment_id)
  return listing_service.associate_listing_with_apartment(listing, apartment).id
Esempio n. 4
0
def kill_listing_task(listing_id):
  listing = listing_service.get_listing(listing_id)
  return listing_service.kill_listing(listing).id
def associate_listing_with_apartment_task(listing_id):
  listing = listing_service.get_listing(listing_id)
  return apartment_service.associate_listing_with_apartment(listing).id
Esempio n. 6
0
def adopt_listing_task(listing_id):
  listing = listing_service.get_listing(listing_id)
  return apartment_service.adopt_listing(listing).id
Esempio n. 7
0
def update_availability_task(listing_id):
  listing = listing_service.get_listing(listing_id)
  apartment = listing.apartment
  apartment_service.update_availability(apartment)