]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Fix rendering mirrors page
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Oct 2017 11:32:27 +0000 (12:32 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Oct 2017 11:32:27 +0000 (12:32 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/mirrors.py

index 58a0ba882c2eb82eb7af0d93204600ea522da62d..61404f7c79292dcf1a2e006b08406d231667c872 100644 (file)
@@ -75,10 +75,7 @@ class Mirrors(base.Object):
                mirrors = []
 
                # Walk through all mirrors
-               for mirror in self.get_all():
-                       if not mirror.enabled:
-                               continue
-
+               for mirror in self:
                        if mirror.country_code == country_code:
                                mirrors.append(mirror)