From 068feaa5918468c812bd20ba2e7de6d43ff9a232 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sun, 11 Aug 2024 11:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B1=E2=80=8D=F0=9F=92=BB=E5=88=AB?= =?UTF-8?q?=E5=88=B0GitHub=E6=8B=89=E5=8F=96=E6=9B=B4=E6=96=B0=E4=BA=86?= =?UTF-8?q?=E2=80=A6=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/liteyuki_main/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/liteyuki_main/api.py b/src/liteyuki_main/api.py index c82956d..8aa28aa 100644 --- a/src/liteyuki_main/api.py +++ b/src/liteyuki_main/api.py @@ -5,7 +5,7 @@ from src.utils.base.config import get_config remote_urls = [ "https://gitee.com/TriM-Organization/LiteyukiBot-TriM.git", - "https://github.com/TriM-Organization/LiteyukiBot-TriM.git" + # "https://github.com/TriM-Organization/LiteyukiBot-TriM.git" ] @@ -17,7 +17,7 @@ def detect_update() -> bool: repo.remotes.origin.fetch() if repo.head.commit != repo.commit('origin/main'): return True - + return False def update_liteyuki() -> tuple[bool, str]: """更新轻雪 @@ -45,3 +45,4 @@ def update_liteyuki() -> tuple[bool, str]: else: raise PermissionError("更新已被禁用") + return False, "更新已被禁用"