From 071730a33ccc848229a9d712c9af200c1c5213b1 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Fri, 30 Oct 2009 16:56:38 +0100 Subject: Bugfix: age should be handled as integer while sorting --- wnpp-query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3