[hg] galaxy 1669: Fix for the users reports.
details: http://www.bx.psu.edu/hg/galaxy/rev/493a4a3ec2d8 changeset: 1669:493a4a3ec2d8 user: Greg Von Kuster <greg@bx.psu.edu> date: Mon Dec 15 11:25:47 2008 -0500 description: Fix for the users reports. 1 file(s) affected in this change: lib/galaxy/webapps/reports/controllers/users.py diffs (18 lines): diff -r 87a9cf297998 -r 493a4a3ec2d8 lib/galaxy/webapps/reports/controllers/users.py --- a/lib/galaxy/webapps/reports/controllers/users.py Mon Dec 15 10:37:39 2008 -0500 +++ b/lib/galaxy/webapps/reports/controllers/users.py Mon Dec 15 11:25:47 2008 -0500 @@ -1,4 +1,4 @@ -from datetime import datetime, timedelta +from datetime import * from time import strftime import calendar, operator from galaxy.webapps.reports.base.controller import * @@ -98,7 +98,7 @@ def last_access_date( self, trans, **kwd ): params = util.Params( kwd ) msg = params.get( 'msg', '' ) - not_logged_in_for_days = params.get( 'not_logged_in_for_days', 0 ) + not_logged_in_for_days = params.get( 'not_logged_in_for_days', 90 ) if not not_logged_in_for_days: not_logged_in_for_days = 0 cutoff_time = datetime.utcnow() - timedelta( days=int( not_logged_in_for_days ) )
participants (1)
-
Greg Von Kuster