cleaning some code (from MR #9)
This commit is contained in:
parent
67b7e72507
commit
37ee1e5a67
6 changed files with 27 additions and 29 deletions
|
@ -38,9 +38,9 @@ class FeedCache:
|
|||
with open(self.options['cachefile']) as dbdsc:
|
||||
dbfromfile = dbdsc.readlines()
|
||||
dblist = [i.strip() for i in dbfromfile]
|
||||
self.dbfeed = deque(dblist, self.options['cache_limit'] )
|
||||
self.dbfeed = deque(dblist, self.options['cache_limit'])
|
||||
else:
|
||||
self.dbfeed = deque([], self.options['cache_limit'] )
|
||||
self.dbfeed = deque([], self.options['cache_limit'])
|
||||
|
||||
def append(self, rssid):
|
||||
'''Append a rss id to the cache'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue