From fefb0f43d4448dad8a12b9525f57760991af8239 Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Wed, 27 Sep 2023 20:53:43 +0200 Subject: [PATCH] nextcloud size on cron --- orchestra/contrib/saas/backends/nextcloud.py | 2 +- orchestra/contrib/tasks/admin.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/orchestra/contrib/saas/backends/nextcloud.py b/orchestra/contrib/saas/backends/nextcloud.py index 17df098f..3c3ef0a1 100644 --- a/orchestra/contrib/saas/backends/nextcloud.py +++ b/orchestra/contrib/saas/backends/nextcloud.py @@ -19,7 +19,7 @@ class NextCloudAPIMixin(object): def validate_response(self, response): request = response.request context = (request.method, response.url, request.body, response.status_code) - sys.stderr.write("%s %s '%s' HTTP %s\n" % context) + # sys.stderr.write("%s %s '%s' HTTP %s\n" % context) if response.status_code != requests.codes.ok: raise RuntimeError("%s %s '%s' HTTP %s" % context) root = ET.fromstring(response.text) diff --git a/orchestra/contrib/tasks/admin.py b/orchestra/contrib/tasks/admin.py index d245a5f6..878c71f5 100644 --- a/orchestra/contrib/tasks/admin.py +++ b/orchestra/contrib/tasks/admin.py @@ -6,5 +6,4 @@ from orchestra.admin.utils import admin_date display_last_run_at = admin_date('last_run_at', short_description=_("Last run")) - -PeriodicTaskAdmin.list_display = ('__unicode__', display_last_run_at, 'total_run_count', 'enabled') +PeriodicTaskAdmin.list_display = ('__unicode__', display_last_run_at, 'total_run_count', 'enabled') \ No newline at end of file