From 764a53369f4fd14980e8534804faa8ffe755b7fa Mon Sep 17 00:00:00 2001 From: panya Date: Sun, 8 Feb 2026 17:15:47 +0900 Subject: [PATCH] bug: rename not working --- app/slack/handlers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/slack/handlers.py b/app/slack/handlers.py index 1241b66..9d5c51e 100644 --- a/app/slack/handlers.py +++ b/app/slack/handlers.py @@ -1,3 +1,4 @@ +from html import unescape from typing import Any from app.grad_2025.enums import ReviewStatus @@ -118,12 +119,14 @@ async def handle_status_blocks(self, name: str) -> dict[str, Any]: async def handle_rename(self, args: str) -> dict[str, Any]: """학과 이름을 변경합니다. 사용법: @bot rename 기존이름 -> 새이름""" - if "->" not in args: + normalized_args = unescape(args).replace("→", "->").strip() + + if "->" not in normalized_args: return { "text": "❌ 사용법: `@bot rename 기존이름 -> 새이름`\n예: `@bot rename 홍익대 시각디자인 -> 홍익대학교 시각디자인과`" } - parts = args.split("->") + parts = normalized_args.split("->") if len(parts) != 2: return { "text": "❌ 사용법: `@bot rename 기존이름 -> 새이름`\n예: `@bot rename 홍익대 시각디자인 -> 홍익대학교 시각디자인과`"