From 5b37cbac81b6816111c8e9318fd390ab60c4bd2a Mon Sep 17 00:00:00 2001 From: DancingSnow <60736156+DancingSnow0517@users.noreply.github.com> Date: Thu, 28 Jul 2022 22:39:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Paimon_Info/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Paimon_Info/__init__.py b/Paimon_Info/__init__.py index 82ee820..6aeb287 100644 --- a/Paimon_Info/__init__.py +++ b/Paimon_Info/__init__.py @@ -279,7 +279,7 @@ async def myzj_handler(event: MessageEvent, msg: Message = CommandArg()): elif month_now == 2: month_list = ['12', '1', '2'] else: - month_list = [str(month_now - 2), str(month_now - 1)] + month_list = [str(month_now - 2), str(month_now - 1), month_now] find_month = '(?P' + '|'.join(month_list) + ')' match = re.search(find_month, msg) month = match.group('month') if match else month_now From 73b58136cf2d2551554d7abd0f7a07e8eacbece9 Mon Sep 17 00:00:00 2001 From: DancingSnow <60736156+DancingSnow0517@users.noreply.github.com> Date: Thu, 28 Jul 2022 22:43:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Paimon_Info/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Paimon_Info/__init__.py b/Paimon_Info/__init__.py index 6aeb287..c599d64 100644 --- a/Paimon_Info/__init__.py +++ b/Paimon_Info/__init__.py @@ -279,7 +279,7 @@ async def myzj_handler(event: MessageEvent, msg: Message = CommandArg()): elif month_now == 2: month_list = ['12', '1', '2'] else: - month_list = [str(month_now - 2), str(month_now - 1), month_now] + month_list = [str(month_now - 2), str(month_now - 1), str(month_now)] find_month = '(?P' + '|'.join(month_list) + ')' match = re.search(find_month, msg) month = match.group('month') if match else month_now