From 17f6a2465e237288ee1a3149f8d24d070899bdf1 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Fri, 6 May 2016 10:19:59 +0800 Subject: [PATCH] added is_master filtering --- index.html | 2 ++ static/js/index.es6 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/index.html b/index.html index e825fda..6401963 100644 --- a/index.html +++ b/index.html @@ -83,6 +83,7 @@ permalink: / {% raw %} {% endraw %} diff --git a/static/js/index.es6 b/static/js/index.es6 index 09dd904..c647fa2 100644 --- a/static/js/index.es6 +++ b/static/js/index.es6 @@ -51,6 +51,9 @@ window.refreshMirrorList = () => { d['help_url'] = help_url[d['name']]; d['is_new'] = new_mirrors[d['name']]; d['show_status'] = (d.status != "success"); + if (d['is_master'] === undefined) { + d['is_master'] = true; + } // Strip the second component of last_update if (d['last_update_ts']) { let date = new Date(d['last_update_ts'] * 1000);