| | |
| | | codes_sh, codes_sz = l1_subscript_codes_manager.get_codes() |
| | | codes |= set([x.decode() for x in codes_sh]) |
| | | codes |= set([x.decode() for x in codes_sz]) |
| | | day = tool.get_now_date_str() |
| | | schedule.every().day.at("08:05:00").do(lambda: KPLCodeJXBlocksManager(day, codes).start_download_blocks()) |
| | | # day = tool.get_now_date_str() |
| | | # schedule.every().day.at("08:05:00").do(lambda: KPLCodeJXBlocksManager(day, codes).start_download_blocks()) |
| | | schedule.every().day.at("08:10:00").do(lambda: update_leading_limit_up_datas()) |
| | | schedule.every().day.at("08:30:00").do(lambda: update_leading_limit_up_datas()) |
| | | schedule.every().day.at("08:50:00").do(lambda: update_leading_limit_up_datas()) |
| | | schedule.every().day.at("09:05:00").do(lambda: update_leading_limit_up_datas()) |
| | | while True: |
| | | try: |
| | | schedule.run_pending() |