[arch-projects] [archweb] [PATCH] mirrors: api: Add ISOs information to JSON output
1 Aug
2016
1 Aug
'16
8:22 p.m.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- mirrors/views/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mirrors/views/api.py b/mirrors/views/api.py index b72585e..581a0d5 100644 --- a/mirrors/views/api.py +++ b/mirrors/views/api.py @@ -26,6 +26,7 @@ def default(self, obj): 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) -- 2.9.2
3064
Age (days ago)
3064
Last active (days ago)
0 comments
1 participants
participants (1)
-
Johannes Löthberg