| | |
| | | latest_datas = kpl_data_manager.KPLLimitUpDataRecordManager.latest_origin_datas |
| | | if latest_datas is None: |
| | | latest_datas = [] |
| | | if type(blocks) == tuple: |
| | | blocks = set(blocks[0]) |
| | | for b in blocks: |
| | | try: |
| | | current_codes = kpl_data_manager.KPLLimitUpDataRecordManager.get_current_codes_by_block(b) |
| | |
| | | |
| | | blockInfos.append({"name": b, "totalLimitUpCount": len(temp_records), |
| | | "openLimitUpCount": len(temp_records) - current_codes_count, "rank": rank[0] + 1}) |
| | | except: |
| | | except Exception as e: |
| | | logger_debug.exception(e) |
| | | logger_debug.error(f"blocks:{blocks}") |
| | | |
| | | # 统计板块的 |