Fix site cleanup from content.db
This commit is contained in:
parent
9e13994c54
commit
c96dce3d0b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class SiteManager(object):
|
||||||
|
|
||||||
# Remove orpan sites from contentdb
|
# Remove orpan sites from contentdb
|
||||||
content_db = ContentDb.getContentDb()
|
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"]
|
address = row["address"]
|
||||||
if address not in self.sites:
|
if address not in self.sites:
|
||||||
self.log.info("Deleting orphan site from content.db: %s" % address)
|
self.log.info("Deleting orphan site from content.db: %s" % address)
|
||||||
|
|
Loading…
Reference in a new issue