From f0b7a34dd3ea5b3b10494c7e186fb10fda30441f Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 9 Mar 2016 11:07:12 -0500 Subject: [PATCH] Apply patch from Fabien Mareuil to resolve json serialization of Decimal error; for more see http://dev.list.galaxyproject.org/quota-api-error-td4669081.html --- lib/galaxy/webapps/galaxy/api/quotas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/api/quotas.py b/lib/galaxy/webapps/galaxy/api/quotas.py index 4a5ed045b3e..1403f09ab47 100644 --- a/lib/galaxy/webapps/galaxy/api/quotas.py +++ b/lib/galaxy/webapps/galaxy/api/quotas.py @@ -50,7 +50,7 @@ class QuotaAPIController( BaseAPIController, Admin, AdminActions, UsesQuotaMixin Displays information about a quota. """ quota = self.get_quota( trans, id, deleted=util.string_as_bool( deleted ) ) - return quota.to_dict( view='element', value_mapper={ 'id': trans.security.encode_id } ) + return quota.to_dict( view='element', value_mapper={ 'id': trans.security.encode_id, 'total_disk_usage': float } ) @web.expose_api @web.require_admin