nextcloud size on cron
This commit is contained in:
parent
69c8a3d918
commit
fefb0f43d4
|
@ -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)
|
||||
|
|
|
@ -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')
|
Loading…
Reference in a new issue