projects
/
zzz-spline-frontpage.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Oops, filled in max_age_to_datetime.
[zzz-spline-frontpage.git]
/
splinext
/
frontpage
/
sources.py
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):