From 1e621099e037e319117cdc7d3cc6e1cba03c82fe Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Sep 2013 11:15:11 +0200 Subject: [PATCH] Log cache hash in Gather --- morss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss.py b/morss.py index e91f253..dc77e7e 100644 --- a/morss.py +++ b/morss.py @@ -124,8 +124,6 @@ class Cache: key, bdata = line.split("\t", 1) self._cached[key] = bdata - log(self._hash) - def __del__(self): self.save() @@ -369,6 +367,8 @@ def Gather(url, cachePath, progress=False): url = url.replace(' ', '%20') cache = Cache(cachePath, url) + log(cache._hash) + # fetch feed if cache.isYoungerThan(DELAY): if 'xml' in cache: