summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-10-30 16:56:38 +0100
committerStefan Ritter <xeno@thehappy.de>2009-10-30 16:56:38 +0100
commit071730a33ccc848229a9d712c9af200c1c5213b1 (patch)
treec5242eb42e7819ee8b5a76007b08c1f12095c23e
parent2bb3caeac3939c5b306c69075c8d8c546d73a87f (diff)
Bugfix: age should be handled as integer while sorting
-rwxr-xr-xwnpp-query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wnpp-query.py b/wnpp-query.py
index bb39b2d..75e61a8 100755
--- a/wnpp-query.py
+++ b/wnpp-query.py
@@ -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: