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 @@