| | |
| | | import tool |
| | | from db import redis_manager |
| | | from db import mysql_data |
| | | import limit_up_time_manager |
| | | import gpcode_manager |
| | | |
| | | __redisManager = redis_manager.RedisManager(0) |
| | | |
| | |
| | | codes = [] |
| | | for code_data in block[2]: |
| | | code = code_data[0].split(".")[0] |
| | | if gpcode_manager.FirstCodeManager.is_in_first_record(code): |
| | | limit_up_time = code_data[4] |
| | | if limit_up_time and len(limit_up_time) > 6: |
| | | if not limit_up_time_manager.get_limit_up_time(code): |
| | | limit_up_time_manager.save_limit_up_time(code, limit_up_time) |
| | | if code not in code_block_dict: |
| | | code_block_dict[code] = set() |
| | | code_block_dict[code].add(block[0]) |