def __create_remind_dic_end_next_week(): events = Event.create_next_week_end_event_list(TYPE_LIST_END_EVENT) format_dic = { "title": "1週間後納期/本番のイベント", "date_jpn": "1週間後", "date": TimeUtil.get_next_week_str(TimeUtil.TIME_FORMAT_YYMMDD), "count": len(events) } ret_dic = { DIC_KEY_EVENTS: events, DIC_KEY_EXIST_MESSAGE: MESSAGE_BASE_EXIST_END_EVENT.format(format_dic), DIC_KEY_NOT_EXIST_MESSAGE: "" } return ret_dic
def create_next_week_end_event_list(type_list): next_week_str = TimeUtil.get_next_week_str(TimeUtil.TIME_FORMAT_YYMMDD) ret_list = __search_end_event_list(next_week_str, type_list) for event in ret_list: event.previous_week_flag = True return ret_list