| | |
| | | history_limit_up_datas = [] |
| | | current_limit_up_datas = [] |
| | | __current_limit_up_block_codes = {} |
| | | __history_limit_up_block_codes = {} |
| | | |
| | | @classmethod |
| | | def set_current_limit_up_datas(cls, current_limit_up_datas): |
| | |
| | | # kpl_block_util.open_limit_up_time_range[1]: |
| | | # blocks |= set(d[6].split("、")) |
| | | blocks -= constant.KPL_INVALID_BLOCKS |
| | | if blocks: |
| | | for b in blocks: |
| | | if b not in cls.__history_limit_up_block_codes: |
| | | cls.__history_limit_up_block_codes[b] = set() |
| | | cls.__history_limit_up_block_codes[b].add(code) |
| | | cls.__history_code_blocks_dict[code] = BlockMapManager().filter_blocks(blocks) |
| | | cls.__history_code_data_dict[code] = d |
| | | |
| | |
| | | def get_current_limit_up_block_codes(cls, block): |
| | | return cls.__current_limit_up_block_codes.get(block) |
| | | |
| | | @classmethod |
| | | def get_history_limit_up_block_codes(cls, block): |
| | | return cls.__history_limit_up_block_codes.get(block) |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | ContainsLimitupCodesBlocksManager() |