Skip to content

Instantly share code, notes, and snippets.

@t7y
Last active March 31, 2020 02:04
Show Gist options
  • Save t7y/d661e61f3b2878a8e7c1eaaee24ee6cf to your computer and use it in GitHub Desktop.
Save t7y/d661e61f3b2878a8e7c1eaaee24ee6cf to your computer and use it in GitHub Desktop.
hotel ratios sonder
from server.lib.arm.scheduled_rules.hotel_ratio_rules_manager import HotelRatioRulesManager
city_id = 9
bedroom_count = "2"
building_id = "1296"
HotelRatioRulesManager.apply_price_changes_for_segment(
city_id, building_id, bedroom_count
)
session = HotelRatioRulesManager.get_session()
HotelRatioRulesManager.hotel_ratio_rules_enabled(session, city_id, building_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment