projects
/
zzz-spline-frontpage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16a2995
)
Oops, filled in max_age_to_datetime.
veekun-promotions/2010080801
veekun-promotions/2010080802
author
Eevee
<git@veekun.com>
Sun, 8 Aug 2010 18:17:44 +0000
(11:17 -0700)
committer
Eevee
<git@veekun.com>
Sun, 8 Aug 2010 18:17:44 +0000
(11:17 -0700)
splinext/frontpage/sources.py
patch
|
blob
|
history
diff --git
a/splinext/frontpage/sources.py
b/splinext/frontpage/sources.py
index
dc97bf3
..
eaefc57
100644
(file)
--- 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):