From 9d3975ccc0c1eaa3c8a481ba8ebe0effdee84449 Mon Sep 17 00:00:00 2001 From: emdete Date: Tue, 11 Mar 2008 21:51:54 +0000 Subject: [PATCH] dont queue download request that are already queued git-svn-id: http://www.neo1973-germany.de/svn@27 46df4e5c-bc4e-4628-a0fc-830ba316316d --- pylgrim/pylgrim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylgrim/pylgrim.py b/pylgrim/pylgrim.py index a4de088..3cf0462 100755 --- a/pylgrim/pylgrim.py +++ b/pylgrim/pylgrim.py @@ -252,7 +252,8 @@ class Pylgrim(edje.Edje): #add all tiles that are not yet downloaded to a list for i in xrange(2*self.border_x+1): for j in xrange(2*self.border_y+1): - if not os.path.exists("%d/%d/%d.png"%(self.z,self.x+i-self.border_x,self.y+j-self.border_y)): + if not os.path.exists("%d/%d/%d.png"%(self.z,self.x+i-self.border_x,self.y+j-self.border_y))\ + and not (self.z,self.x+i-self.border_x,self.y+j-self.border_y) in self.tiles_to_download: self.tiles_to_download.append((self.z,self.x+i-self.border_x,self.y+j-self.border_y)) self.tiles_to_download_total = len(self.tiles_to_download) '''