From 0dac3f1b1d3685f193806cd1a440fd8b39bb59a1 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 1 Nov 2023 17:58:48 +0800 Subject: [PATCH] fix gitignore --- .gitignore | 4 ++++ app/helper/plugin.py | 2 +- app/helper/resource.py | 42 ------------------------------------------ 3 files changed, 5 insertions(+), 43 deletions(-) delete mode 100644 app/helper/resource.py diff --git a/.gitignore b/.gitignore index 78ce082c..d27c2317 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,10 @@ dist/ nginx/ test.py app/helper/sites.py +app/helper/*.so +app/helper/*.pyd +app/plugins/** config/user.db +config/sites/** *.pyc *.log diff --git a/app/helper/plugin.py b/app/helper/plugin.py index ded20843..ca1decef 100644 --- a/app/helper/plugin.py +++ b/app/helper/plugin.py @@ -14,7 +14,7 @@ class PluginHelper(metaclass=Singleton): @cached(cache=TTLCache(maxsize=1, ttl=1800)) def get_plugins(self) -> Dict[str, dict]: """ - 获取所有插件列表 + 获取Github所有最新插件列表 """ pass diff --git a/app/helper/resource.py b/app/helper/resource.py deleted file mode 100644 index 477254f0..00000000 --- a/app/helper/resource.py +++ /dev/null @@ -1,42 +0,0 @@ -from typing import Tuple, Dict - -from cachetools import TTLCache, cached - -from app.utils.singleton import Singleton - - -class ResourceHelper(metaclass=Singleton): - """ - 资源包管理,下载更新资源包 - """ - - @cached(cache=TTLCache(maxsize=1, ttl=1800)) - def get_versions(self) -> Dict[str, dict]: - """ - 获取资源包版本信息 - """ - pass - - def check_auth_update(self) -> Tuple[bool, str]: - """ - 检查认证资源是否有新版本 - """ - pass - - def check_sites_update(self) -> Tuple[bool, str]: - """ - 检查站点资源是否有新版本 - """ - pass - - def update_auth(self) -> bool: - """ - 更新认证资源 - """ - pass - - def update_sites(self) -> bool: - """ - 更新站点资源 - """ - pass