nextcloud size on cron
This commit is contained in:
parent
2cd20465c9
commit
7a8c6c9b90
|
@ -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)
|
||||||
|
|
|
@ -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')
|
Loading…
Reference in New Issue