From 0134207367d023d3c9c10efb2419ccf8a0171fe0 Mon Sep 17 00:00:00 2001 From: Neko Aria <990879119@qq.com> Date: Tue, 17 May 2022 00:17:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:bug:=20=E4=BF=AE=E6=AD=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AE=A2=E9=98=85=E6=97=B6=E5=A6=82=E6=9E=9C=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E5=AD=98=E5=9C=A8=E5=90=8C=E5=90=8D=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/ELF_RSS2/command/add_dy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/ELF_RSS2/command/add_dy.py b/src/plugins/ELF_RSS2/command/add_dy.py index a0732fb2..1091dc58 100644 --- a/src/plugins/ELF_RSS2/command/add_dy.py +++ b/src/plugins/ELF_RSS2/command/add_dy.py @@ -50,6 +50,11 @@ async def handle_rss_add( await RSS_ADD.reject(prompt) return + if _ := Rss.get_one_by_name(name): + await RSS_ADD.send(f"已存在订阅名为 {name} 的订阅") + await RSS_ADD.reject(prompt) + return + user_id = event.get_user_id() group_id = None guild_channel_id = None From 50801aa8a16af92cb8ba4976b1c99931e57a48c5 Mon Sep 17 00:00:00 2001 From: Neko Aria <990879119@qq.com> Date: Tue, 17 May 2022 08:47:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=20`v2.6.2`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env b/.env index a3c74c95..6c5802b9 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ ENVIRONMENT=prod -VERSION='v2.6.1' +VERSION='v2.6.2' diff --git a/pyproject.toml b/pyproject.toml index 5f500c79..72620730 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ELF_RSS" -version = "2.6.1" +version = "2.6.2" description = "QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub" authors = ["Quan666 "] license = "GPL-3.0-only" @@ -14,6 +14,7 @@ keywords = ["nonebot", "nonebot2", "rss" ,"elf" ,"rsshub"] [tool.poetry.dependencies] python = "^3.8.3" +aerich = "^0.6.3" aiohttp = "^3.8.1" arrow = "^1.2.0" bbcode = "^1.1.0" @@ -31,8 +32,8 @@ pydantic = "^1.9.0" pyquery = "^1.4.3" python-qbittorrent = "^0.4.2" tenacity = "^7.0.0" -tinydb = "^4.7.0" typing-extensions = "^3.10.0.2" +tortoise-orm = {extras = ["accel"], version = "^0.19.0"} yarl = "^1.7.2" [tool.poetry.dev-dependencies]