]> git.ipfire.org Git - ipfire.org.git/commitdiff
Remove anothing thing that I have left in the code.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Jan 2011 22:21:40 +0000 (23:21 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Jan 2011 22:21:40 +0000 (23:21 +0100)
www/webapp/handlers_download.py

index 575069959ecce20c88a5649584c6d0e8b3dc6829..e93b3b665507c6e66f465c4dfcc30dadd98c8dba 100644 (file)
@@ -80,11 +80,9 @@ class DownloadFileHandler(BaseHandler):
 
                # Find mirrors located near to the user.
                # If we have not found any, we use all.
-               if len(mirrors) <= 3:
-                       #mirrors_nearby = mirrors.get_for_location(self.request.remote_ip)
-                       mirrors_nearby = mirrors.get_for_location("193.59.194.101")
-                       if mirrors_nearby:
-                               mirrors = mirrors_nearby
+               mirrors_nearby = mirrors.get_for_location(self.request.remote_ip)
+               if mirrors_nearby:
+                       mirrors = mirrors_nearby
 
                mirror = mirrors.get_random()