Add site to site manager if required
This commit is contained in:
parent
b52e8f74e2
commit
709dc854e7
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ class Site(object):
|
||||||
|
|
||||||
# Save site settings to data/sites.json
|
# Save site settings to data/sites.json
|
||||||
def saveSettings(self):
|
def saveSettings(self):
|
||||||
|
if not SiteManager.site_manager.get(self.address):
|
||||||
|
SiteManager.site_manager.sites[self.address] = self
|
||||||
SiteManager.site_manager.save()
|
SiteManager.site_manager.save()
|
||||||
|
|
||||||
# Max site size in MB
|
# Max site size in MB
|
||||||
|
|
Loading…
Reference in a new issue