diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-08-01 22:20:44 +0200 |
---|---|---|
committer | Angel Velasquez <angvp@archlinux.org> | 2016-08-01 22:23:11 +0000 |
commit | 875cc597e924b74e0a6fd1492d03102ae63eb174 (patch) | |
tree | de2480d5c018269237e28bbd5bb800509f303af1 | |
parent | 35e03943b2fbb4ef2a8cc7a9df323164f44b0e82 (diff) |
mirrors: api: Add ISOs information to JSON output
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Angel Velasquez <angvp@archlinux.org>
-rw-r--r-- | mirrors/views/api.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mirrors/views/api.py b/mirrors/views/api.py index b72585e6..581a0d5e 100644 --- a/mirrors/views/api.py +++ b/mirrors/views/api.py @@ -26,6 +26,7 @@ class MirrorStatusJSONEncoder(DjangoJSONEncoder): country = obj.country data['country'] = unicode(country.name) data['country_code'] = country.code + data['isos'] = obj.mirror.isos return data if isinstance(obj, MirrorProtocol): return unicode(obj) |