Force reannounce not yet download site on refresh
This commit is contained in:
parent
a07a31a2bb
commit
7954caf957
1 changed files with 5 additions and 1 deletions
|
@ -308,7 +308,11 @@ class UiRequest(object):
|
|||
title = site.content_manager.contents["content.json"]["title"]
|
||||
else:
|
||||
title = "Loading %s..." % address
|
||||
site = SiteManager.site_manager.need(address) # Start download site
|
||||
site = SiteManager.site_manager.get(address)
|
||||
if site: # Already added, but not downloaded
|
||||
gevent.spawn(site.update, announce=True)
|
||||
else: # If not added yet
|
||||
site = SiteManager.site_manager.need(address)
|
||||
|
||||
if not site:
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue