From: Eevee Date: Sun, 8 Aug 2010 18:17:44 +0000 (-0700) Subject: Oops, filled in max_age_to_datetime. X-Git-Tag: veekun-promotions/2010080801^0 X-Git-Url: http://git.veekun.com/zzz-spline-frontpage.git/commitdiff_plain/3e28142ab39f3b4f3080c8e55c76a66d8134bf66 Oops, filled in max_age_to_datetime. --- diff --git a/splinext/frontpage/sources.py b/splinext/frontpage/sources.py index dc97bf3..eaefc57 100644 --- a/splinext/frontpage/sources.py +++ b/splinext/frontpage/sources.py @@ -21,8 +21,10 @@ def max_age_to_datetime(max_age): if max_age == None: return None - seconds = int(max_age) + dt = datetime.datetime.now() + dt -= datetime.timedelta(seconds=int(max_age)) + return dt class Source(object):