Commit 8577d595 authored by Johannes Löthberg's avatar Johannes Löthberg
Browse files

mirrors/views/api: Add URL active status

Signed-off-by: Johannes Löthberg's avatarJohannes Löthberg <>
parent f42f357f
......@@ -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