예제 #1
0
def get(city_id):
    return trs_query_cfg_service.get_by_city(city_id)
예제 #2
0
def _get_city_trs_cfg(city_id):
    city_trs_cfg = trs_cfg_service.get_by_city(city_id) or {}
    city_trs_cfg.setdefault('date_from', _default_date_from())
    city_trs_cfg.setdefault('date_end', _default_date_end())
    return city_trs_cfg
예제 #3
0
def _get_city_trs_cfg(city_id):
    city_trs_cfg = trs_cfg_service.get_by_city(city_id) or {}
    city_trs_cfg.setdefault('date_from', _default_date_from())
    city_trs_cfg.setdefault('date_end', _default_date_end())
    return city_trs_cfg