projects
/
feedingit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a861b79
)
Woodchuck: Set a stream's freshness according to the configured update internal.
author
Neal H. Walfield
<neal@walfield.org>
Sun, 27 Nov 2011 16:24:53 +0000
(17:24 +0100)
committer
Neal H. Walfield
<neal@walfield.org>
Sun, 27 Nov 2011 17:00:58 +0000
(18:00 +0100)
src/rss_sqlite.py
patch
|
blob
|
history
diff --git
a/src/rss_sqlite.py
b/src/rss_sqlite.py
index
3a00254
..
f1032d7
100644
(file)
--- a/
src/rss_sqlite.py
+++ b/
src/rss_sqlite.py
@@
-1005,12
+1005,15
@@
class Listing(BaseObject):
"Registering previously unknown channel: %s (%s)"
% (key, title,))
wc().stream_register(
"Registering previously unknown channel: %s (%s)"
% (key, title,))
wc().stream_register(
- key, title, self.config.getUpdateInterval * 60 * 60)
+ key, title,
+ self.config.getUpdateInterval() * 60 * 60)
else:
# Make sure the human readable name is up to date.
if wc()[key].human_readable_name != title:
wc()[key].human_readable_name = title
stream_ids.remove (key)
else:
# Make sure the human readable name is up to date.
if wc()[key].human_readable_name != title:
wc()[key].human_readable_name = title
stream_ids.remove (key)
+ wc()[key].freshness \
+ = self.config.getUpdateInterval() * 60 * 60
# Unregister any streams that are no longer subscribed to.
# Unregister any streams that are no longer subscribed to.