Skip to content

Commit ad2332c

Browse files
committed
fix lint
1 parent 23c63e1 commit ad2332c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

channels/feishu_channel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,7 @@ def _format_forwarded_prompt(self, original_content: str, forwarded: dict) -> st
546546
parts.append(f"转发自: {sender_name}")
547547

548548
if forwarded.get("timestamp"):
549-
ts = datetime.fromtimestamp(
550-
forwarded["timestamp"], tz=timezone(timedelta(hours=8))
551-
)
549+
ts = datetime.fromtimestamp(forwarded["timestamp"], tz=timezone(timedelta(hours=8)))
552550
parts.append(f"时间: {ts.strftime('%Y-%m-%d %H:%M')}")
553551

554552
parts.append("\n--- 转发内容 ---")

channels/telegram_channel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,7 @@ def _format_forwarded_text(self, text: str, update: "Update") -> str:
325325

326326
# 添加时间戳
327327
if msg.forward_date:
328-
ts = datetime.fromtimestamp(
329-
msg.forward_date, tz=timezone(timedelta(hours=8))
330-
)
328+
ts = datetime.fromtimestamp(msg.forward_date, tz=timezone(timedelta(hours=8)))
331329
parts.append(f"时间: {ts.strftime('%Y-%m-%d %H:%M')}")
332330

333331
parts.append("\n--- 转发内容 ---")

0 commit comments

Comments
 (0)