From: Michael Tremer Date: Tue, 18 Jan 2011 22:21:40 +0000 (+0100) Subject: Remove anothing thing that I have left in the code. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=554f410f4f81dd6ceb82c679f7448769f1b9c021;p=ipfire.org.git Remove anothing thing that I have left in the code. --- diff --git a/www/webapp/handlers_download.py b/www/webapp/handlers_download.py index 57506995..e93b3b66 100644 --- a/www/webapp/handlers_download.py +++ b/www/webapp/handlers_download.py @@ -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()