Unverified Commit 7a317b73 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧 Committed by GitHub
Browse files

Merge pull request #85 from kyrias/json-mirror-url-active

mirrors/views/api: Add URL active status
parents f3e26eb1 8577d595
......@@ -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):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment