diff --git a/auto_pt/views.py b/auto_pt/views.py index 2e77471..93e8581 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -3,7 +3,6 @@ import os import subprocess from datetime import datetime -import markdown from django.http import JsonResponse from django.shortcuts import render @@ -127,10 +126,10 @@ def do_update(request): def restart_container(request): - scraper = pt_spider.get_scraper() - res = scraper.get('https://gitee.com/ngfchl/ptools/raw/master/update.md') - update_notes = markdown.markdown(res.text, extensions=['tables']) + # scraper = pt_spider.get_scraper() + # res = scraper.get('https://gitee.com/ngfchl/ptools/raw/master/update.md') + # update_notes = markdown.markdown(res.text, extensions=['tables']) # print(update_notes) - return render(request, 'auto_pt/restart.html', context={ - 'update_notes': update_notes - }) + return render(request, 'auto_pt/restart.html', + # context={'update_notes': update_notes} + ) diff --git a/static/abav6-1e67y-001.ico b/static/abav6-1e67y-001.ico new file mode 100644 index 0000000..c9aa6e1 Binary files /dev/null and b/static/abav6-1e67y-001.ico differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..04c8de2 Binary files /dev/null and b/static/favicon.ico differ diff --git a/templates/admin/base.html b/templates/admin/base.html index 3272c2a..f108dfe 100644 --- a/templates/admin/base.html +++ b/templates/admin/base.html @@ -5,6 +5,7 @@ {% block title %}PT一下,你就知道{% endblock %} {% include 'admin/includes/css-part.html' %} + diff --git a/templates/admin/index.html b/templates/admin/index.html index 33860a7..59535ce 100755 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -11,6 +11,7 @@ + {% block title %} @@ -116,14 +117,14 @@ {% endblock %} - - - - + + + + diff --git a/templates/auto_pt/restart.html b/templates/auto_pt/restart.html index 3fc2e1a..ad780f2 100644 --- a/templates/auto_pt/restart.html +++ b/templates/auto_pt/restart.html @@ -10,7 +10,7 @@
更新日志 - 拉取更新 + 更新 重启
@@ -21,9 +21,6 @@ {# {{ update_notes|safe }}#} - - - {# href='javascript:(confirm("确定重启?"))?location="/tasks/restart":location="/"'#} @@ -39,9 +36,6 @@ data: { update_note: ['请先拉取更新哦'] }, - created: function () { - {#this.data.update_note = converter.makeHtml({{ update_notes }});#} - }, methods: { do_restart() { this.$confirm('此操作将重启容器,并更新软件, 是否继续?', '提示', { diff --git a/update.md b/update.md index 292e90e..82b90d5 100644 --- a/update.md +++ b/update.md @@ -1,3 +1,4 @@ # M-Team 规则修改 -1. 由于页面链接填写错误,导致做种体积统计未0,修改站点信息->主要页面->当前下载信息:/发布种子信息:/当前做种信息:/完成种子信息:四项页面的链接地址 - 将四个条目中页面地址中的`getusertorrentlistajax`替换为`getusertorrentlist` \ No newline at end of file + +1. 由于页面链接填写错误,导致做种体积统计未0,修改站点信息->主要页面->当前下载信息:/发布种子信息:/当前做种信息:/完成种子信息:四项页面的链接地址 将四个条目中页面地址中的`getusertorrentlistajax` + 替换为`getusertorrentlist` \ No newline at end of file