commit to database after fetching of feed, in hope to reduce duplicate entries

This commit is contained in:
Ronald Schaten 2013-04-15 22:37:27 +02:00
parent 24209b4869
commit 8eb6ed2a6d

View File

@ -102,6 +102,7 @@ class Feed(Base):
entries_new += 1
print 'updated %d of %d entries' % (entries_new, entries_total)
self.housekeeper(session)
session.commit()
def housekeeper(self, session):
count = 0