mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
Merge pull request #1898 from dannon/quota_api_fix_fabien
[16.01] Quota API issue with serialization to JSON of Decimal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user