Fix offline cache behaviour when time is not set
git-svn-id: svn://svn.berlios.de/gpodder/trunk@455 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
parent
56cf6e476f
commit
bb266f63e4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu, 08 Nov 2007 11:28:17 +0100 <thp@perli.net>
|
||||
Fix offline cache behaviour when time is not set
|
||||
|
||||
* src/gpodder/cache.py: Return cached_content in offline mode when
|
||||
cached_content "is not None" (instead of cached_time "is not None")
|
||||
|
||||
Tue, 06 Nov 2007 12:37:41 +0100 <thp@perli.net>
|
||||
Process events before connecting Config to gtk windows
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class Cache:
|
|||
|
||||
cached_time, cached_content = self.storage.get(url, (None, None))
|
||||
|
||||
if offline and cached_time is not None:
|
||||
if offline and cached_content is not None:
|
||||
return cached_content
|
||||
|
||||
# Does the storage contain a version of the data
|
||||
|
|
Loading…
Reference in a new issue