Skip to content

Commit 61b1626

Browse files
committed
Fix report subscription summary
1 parent 1332587 commit 61b1626

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

handlers/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ async def cmd_report(update: Update, context: ContextTypes.DEFAULT_TYPE):
177177
status = "🔴暂停" if g['is_paused'] else "🟢正常"
178178
subs = []
179179
if g['sub_news']: subs.append("早")
180+
if g['sub_analysis']: subs.append("析")
181+
if g['sub_marketing']: subs.append("战")
180182
if g['sub_signal']: subs.append("信")
183+
if not subs: subs.append("无")
181184
txt += f"**{html.escape(g['title'])}**\nID: `{g['chat_id']}`\n状态: {status} | 订阅: {','.join(subs)}\n\n"
182185

183186
if len(txt) > 4000: txt = txt[:4000]
@@ -190,4 +193,4 @@ async def cmd_revoke(update: Update, context: ContextTypes.DEFAULT_TYPE):
190193
await disable_group_broadcast(tid)
191194
await update.message.reply_text(f"✅ 已移除权限: `{tid}`", parse_mode=ParseMode.MARKDOWN)
192195
except ValueError:
193-
await update.message.reply_text("❌ ID 必须是数字")
196+
await update.message.reply_text("❌ ID 必须是数字")

0 commit comments

Comments
 (0)