diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index c97883f..1438dfe 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -850,9 +850,6 @@ class PtSpider: # if '(' in my_bonus: # my_bonus = my_bonus.split('(')[0] - if site.url == 'https://www.pttime.org/': - my_sp = re.findall('-?\d+.?\d+', my_sp)[-1] - hr = ''.join(details_html.xpath(site.my_hr_rule)).split(' ')[0] my_hr = hr if hr else '0' diff --git a/pt_site/admin.py b/pt_site/admin.py index 10e3604..8a9cad2 100644 --- a/pt_site/admin.py +++ b/pt_site/admin.py @@ -206,8 +206,8 @@ class StatusInlines(admin.TabularInline): return False # 禁止删除按钮 - def has_delete_permission(self, request, obj=None): - return False + # def has_delete_permission(self, request, obj=None): + # return False # 禁止修改按钮 def has_change_permission(self, request, obj=None): diff --git a/templates/auto_pt/restart.html b/templates/auto_pt/restart.html index d6afc76..8a77383 100644 --- a/templates/auto_pt/restart.html +++ b/templates/auto_pt/restart.html @@ -8,7 +8,17 @@
- 更新日志 + + + + 更新提示 + + 获取更新 更新 @@ -16,12 +26,9 @@
- {#
    #} - {#
  • #} - {#
#} - +
本地日志
@@ -34,7 +41,7 @@ color="#0bbd87" {# :size="activity.size"#} :timestamp="update_note.date"> - +

@@ -44,7 +51,7 @@
- +
更新日志
@@ -57,7 +64,7 @@ color="#0bbd87" {# :size="activity.size"#} :timestamp="update_note.date"> - +