From 50bb74d748f89668fe4abaac81b0c36ae77e66df Mon Sep 17 00:00:00 2001 From: mmonkey Date: Thu, 27 Jan 2022 00:35:45 -0600 Subject: [PATCH] Add CSRF support for schedule task settings, fixed details page not loading --- cps/schedule.py | 1 - cps/services/background_scheduler.py | 1 - cps/templates/detail.html | 2 +- cps/templates/schedule_edit.html | 1 + 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cps/schedule.py b/cps/schedule.py index 2bb7878f..39c9bc09 100644 --- a/cps/schedule.py +++ b/cps/schedule.py @@ -16,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from __future__ import division, print_function, unicode_literals import datetime from . import config, constants diff --git a/cps/services/background_scheduler.py b/cps/services/background_scheduler.py index 971b0bf7..415b2962 100644 --- a/cps/services/background_scheduler.py +++ b/cps/services/background_scheduler.py @@ -16,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from __future__ import division, print_function, unicode_literals import atexit from .. import logger diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 109b04d2..3bcf5cc6 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -5,7 +5,7 @@
- +
diff --git a/cps/templates/schedule_edit.html b/cps/templates/schedule_edit.html index 71bb2d1a..f989baf9 100644 --- a/cps/templates/schedule_edit.html +++ b/cps/templates/schedule_edit.html @@ -7,6 +7,7 @@

{{title}}

+