Fix site cleanup from content.db

This commit is contained in:
shortcutme 2017-07-31 14:35:01 +02:00
parent 9e13994c54
commit c96dce3d0b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -56,7 +56,7 @@ class SiteManager(object):
# Remove orpan sites from contentdb
content_db = ContentDb.getContentDb()
for row in content_db.execute("SELECT * FROM site"):
for row in content_db.execute("SELECT * FROM site").fetchall():
address = row["address"]
if address not in self.sites:
self.log.info("Deleting orphan site from content.db: %s" % address)