Bugfix: age should be handled as integer while sorting

This commit is contained in:
Stefan Ritter 2009-10-30 16:56:38 +01:00
parent 2bb3caeac3
commit 071730a33c

View file

@ -77,7 +77,7 @@ for line in url:
reports.append(item)
item = []
reports.sort(key = lambda x: x[3])
reports.sort(key = lambda x: int(x[3]))
for entry in reports:
if int(entry[3]) <= options.max_days_old \
and int(entry[3]) >= options.min_days_old: