nextcloud size on cron

This commit is contained in:
Jorge Pastor 2023-09-27 20:53:43 +02:00
parent 69c8a3d918
commit fefb0f43d4
2 changed files with 2 additions and 3 deletions

View file

@ -19,7 +19,7 @@ class NextCloudAPIMixin(object):
def validate_response(self, response): def validate_response(self, response):
request = response.request request = response.request
context = (request.method, response.url, request.body, response.status_code) 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: if response.status_code != requests.codes.ok:
raise RuntimeError("%s %s '%s' HTTP %s" % context) raise RuntimeError("%s %s '%s' HTTP %s" % context)
root = ET.fromstring(response.text) root = ET.fromstring(response.text)

View file

@ -6,5 +6,4 @@ from orchestra.admin.utils import admin_date
display_last_run_at = admin_date('last_run_at', short_description=_("Last run")) 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')