From 065b40ad644acc250fa91c07fdd02661b3993b2b Mon Sep 17 00:00:00 2001 From: ngfchl Date: Fri, 26 Aug 2022 06:37:50 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8D=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=B8=8E=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=B7=B2=E6=AD=A3=E7=A1=AE=E6=98=BE=E7=A4=BA=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E7=9A=84bug=202.=20=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 2 +- update.md | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 93e8581..860e6e8 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -84,7 +84,7 @@ def do_restart(request): try: print('重启') # print(os.system('pwd')) - if os.environ.get('DJANGO_DEBUG'): + if os.environ.get('CONTAINER_NAME'): subprocess.Popen('chmod +x ./restart.sh', shell=True) subprocess.Popen('./restart.sh', shell=True) return JsonResponse(data=CommonResponse.success( diff --git a/update.md b/update.md index 82b90d5..ecabb7b 100644 --- a/update.md +++ b/update.md @@ -1,4 +1,17 @@ -# M-Team 规则修改 +# 更新日志 -1. 由于页面链接填写错误,导致做种体积统计未0,修改站点信息->主要页面->当前下载信息:/发布种子信息:/当前做种信息:/完成种子信息:四项页面的链接地址 将四个条目中页面地址中的`getusertorrentlistajax` - 替换为`getusertorrentlist` \ No newline at end of file +## 规则说明 +1. 由于我们的规则是写在数据库里的,不能每次优化更新规则都去操作数据库,我怕会搞掉你们的数据,规则更新后我会现在这里发出来,大家可以自行手动在站点信息中修改规则。 +2. 我会不定期以CSV格式文件形式发布新规则,大家可以下载后导入 +3. 我已发布通用规则,马上也会发布教程教大家如何自行适配站点,欢迎大家加入适配大军 + +### M-Team 规则修改 +1. 0825 > 由于页面链接填写错误,导致做种体积统计未0,修改站点信息->主要页面->当前下载信息:/发布种子信息:/当前做种信息:/完成种子信息:四项页面的链接地址 将四个条目中页面地址中的`getusertorrentlistajax` + 替换为`getusertorrentlist` + + + +### Bug修复 + - 0826 + 1. 修复白兔签到返回错误的bug + 2. 修复容器名称与环境变量已正确显示无法重启的bug \ No newline at end of file