fix: 修复scheduler.py多行f-string未闭合导致的SyntaxError,保证Linux兼容性

This commit is contained in:
Mars 2025-07-02 16:45:53 +08:00
parent 97e83e8c0f
commit 7979281c09

View File

@ -197,15 +197,17 @@ class LotteryScheduler:
open_red = [last_draw.red_ball_1, last_draw.red_ball_2, last_draw.red_ball_3,
last_draw.red_ball_4, last_draw.red_ball_5, last_draw.red_ball_6]
open_blue = [last_draw.blue_ball]
open_code_str = f"{' '.join(f'{n:02d}' for n in open_red)} | {
' '.join(f'{n:02d}' for n in open_blue)}"
red_str = ' '.join(f"{n:02d}" for n in open_red)
blue_str = ' '.join(f"{n:02d}" for n in open_blue)
open_code_str = f"{red_str} | {blue_str}"
else:
open_red = [last_draw.front_ball_1, last_draw.front_ball_2,
last_draw.front_ball_3, last_draw.front_ball_4, last_draw.front_ball_5]
open_blue = [last_draw.back_ball_1,
last_draw.back_ball_2]
open_code_str = f"{' '.join(f'{n:02d}' for n in open_red)} | {
' '.join(f'{n:02d}' for n in open_blue)}"
red_str = ' '.join(f"{n:02d}" for n in open_red)
blue_str = ' '.join(f"{n:02d}" for n in open_blue)
open_code_str = f"{red_str} | {blue_str}"
# 固定号码开奖比对
fixed_result = None
if last_draw: