diff options
author | jelle van der Waa <jelle@vdwaa.nl> | 2018-02-18 22:06:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 22:06:11 +0100 |
commit | 7a317b73baaf1e7b81bbffb8b54642911b3fad36 (patch) | |
tree | 7065be234196726b9735e4d5febaf57c621922b7 /mirrors | |
parent | f3e26eb15a54e74a375e395200bfca3d1664adaf (diff) | |
parent | 8577d5957707ee9955aacb653c8749d7979d671f (diff) | |
download | archweb-7a317b73baaf1e7b81bbffb8b54642911b3fad36.tar.gz archweb-7a317b73baaf1e7b81bbffb8b54642911b3fad36.zip |
Merge pull request #85 from kyrias/json-mirror-url-active
mirrors/views/api: Add URL active status
Diffstat (limited to 'mirrors')
-rw-r--r-- | mirrors/views/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/views/api.py b/mirrors/views/api.py index 068b70dd..4d87619b 100644 --- a/mirrors/views/api.py +++ b/mirrors/views/api.py @@ -15,7 +15,7 @@ class MirrorStatusJSONEncoder(DjangoJSONEncoder): '''Base JSONEncoder extended to handle datetime.timedelta and MirrorUrl serialization. The base class takes care of datetime.datetime types.''' url_attributes = ('url', 'protocol', 'last_sync', 'completion_pct', - 'delay', 'duration_avg', 'duration_stddev', 'score') + 'delay', 'duration_avg', 'duration_stddev', 'score', 'active') def default(self, obj): if isinstance(obj, timedelta): |