fix color extraction, fixes #1446

This commit is contained in:
j 2013-03-23 14:52:54 +00:00
parent 455f17b515
commit eb7bb3571f
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ def average_color(prefix, start=0, end=0, mode='antialias'):
start = int(start * 25)
end = int(end * 25)
mode = 'timeline' + mode
timelines = sorted(filter(lambda t: t!= '%s%s%sp.jpg'%(prefix, mode, height),
timelines = ox.sorted_strings(filter(lambda t: t!= '%s%s%sp.jpg'%(prefix, mode, height),
glob("%s%s%sp*.jpg"%(prefix, mode, height))))
for image in timelines:
start_offset = 0