Fix not downloaded site delete on startup
This commit is contained in:
parent
5a226baaa5
commit
94765af0f3
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class SiteManager(object):
|
||||||
content_db = ContentDb.getContentDb()
|
content_db = ContentDb.getContentDb()
|
||||||
for row in content_db.execute("SELECT * FROM site").fetchall():
|
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 and address not in address_found:
|
||||||
self.log.info("Deleting orphan site from content.db: %s" % address)
|
self.log.info("Deleting orphan site from content.db: %s" % address)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue