From e6d156486c4117acf2ddc7cd3fcf6a0caef0cbd1 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 10 Jul 2005 12:26:31 +0000 Subject: store mtime in link object instead of age in days git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@60 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- schemes/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'schemes/http.py') diff --git a/schemes/http.py b/schemes/http.py index bda95f5..c87b361 100644 --- a/schemes/http.py +++ b/schemes/http.py @@ -117,7 +117,7 @@ def init(link, url, parent): except (OverflowError, TypeError, ValueError): lastMod = None if lastMod: - link.age = int((time.time()-lastMod)/myUrlLib.SECS_PER_DAY) + link.mtime = lastMod def get_document(url): document = opener.open(url).read() -- cgit v1.2.3