fix: 修复prediction.py中f-string跨行语法错误
This commit is contained in:
parent
4f35fabe48
commit
5d82328f51
@ -193,12 +193,16 @@ def recommend_today(db: Session = Depends(get_db)):
|
|||||||
# 2. 组装推送内容(固定投注+4注推荐)
|
# 2. 组装推送内容(固定投注+4注推荐)
|
||||||
msg_lines = [title]
|
msg_lines = [title]
|
||||||
# 固定投注
|
# 固定投注
|
||||||
msg_lines.append(f"红球:{' '.join(f'{n:02d}' for n in fixed['red'])} 蓝球:{
|
msg_lines.append(
|
||||||
' '.join(f'{n:02d}' for n in fixed['blue'])}")
|
f"红球:{' '.join(f'{n:02d}' for n in fixed['red'])} "
|
||||||
|
f"蓝球:{' '.join(f'{n:02d}' for n in fixed['blue'])}"
|
||||||
|
)
|
||||||
# 推荐号码
|
# 推荐号码
|
||||||
for rec in results:
|
for rec in results:
|
||||||
msg_lines.append(f"红球:{' '.join(f'{n:02d}' for n in rec['red'])} 蓝球:{
|
msg_lines.append(
|
||||||
' '.join(f'{n:02d}' for n in rec['blue'])}")
|
f"红球:{' '.join(f'{n:02d}' for n in rec['red'])} "
|
||||||
|
f"蓝球:{' '.join(f'{n:02d}' for n in rec['blue'])}"
|
||||||
|
)
|
||||||
if dlt_append:
|
if dlt_append:
|
||||||
msg_lines.append("都追加,谢谢。")
|
msg_lines.append("都追加,谢谢。")
|
||||||
# 3. 快乐8推送(3注十选,合并到主消息)
|
# 3. 快乐8推送(3注十选,合并到主消息)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user