Example #1
0
def get_schedule(params):
    """获取schedule
        Args:
            params:dict 参数字典
        Returns:
            path, {}: 路径和参数字典
    """
    schedules = get_all_schedule_class()
    return "schedule.html", {'schedules': schedules}
Example #2
0
def get_schedule(params):
    """获取schedule
        Args:
            params:dict 参数字典
        Returns:
            path, {}: 路径和参数字典
    """
    schedules = get_all_schedule_class()
    return "schedule.html", {'schedules': schedules}
Example #3
0
def api_get_all_schedule_class(params):
    schedule_classes_str = json.dumps(get_all_schedule_class(),
                                      ensure_ascii=False, encoding="utf-8")
    return result(200, "success", schedule_classes_str)
Example #4
0
def api_get_all_schedule_class(params):
    schedule_classes_str = json.dumps(get_all_schedule_class(),
                                      ensure_ascii=False,
                                      encoding="utf-8")
    return result(200, "success", schedule_classes_str)