Spaces:
Running
Running
Baida commited on
fix(webhook): f-string embedded quote in href — SyntaxError L1155
Browse files
backend/api/telegram_webhook.py
CHANGED
|
@@ -1152,7 +1152,7 @@ async def _cmd_git(chat_id: int, n: int = 5) -> None:
|
|
| 1152 |
lines.append(
|
| 1153 |
f"<code>{html.escape(_sha)}</code> {_msg}\n"
|
| 1154 |
f" <i>{_author} · {_when}</i> "
|
| 1155 |
-
f
|
| 1156 |
)
|
| 1157 |
|
| 1158 |
await _tg_reply(chat_id, "\n".join(lines), keyboard=_BACK_KB)
|
|
|
|
| 1152 |
lines.append(
|
| 1153 |
f"<code>{html.escape(_sha)}</code> {_msg}\n"
|
| 1154 |
f" <i>{_author} · {_when}</i> "
|
| 1155 |
+
f'<a href="{_url}">diff →</a>'
|
| 1156 |
)
|
| 1157 |
|
| 1158 |
await _tg_reply(chat_id, "\n".join(lines), keyboard=_BACK_KB)
|