make sure bool for maintenance sate
This commit is contained in:
parent
5dbc5d141a
commit
37f14f537a
|
|
@ -42,7 +42,7 @@ class PluginAppConfig(AppConfig):
|
||||||
"""load and activate all IntegrationPlugins"""
|
"""load and activate all IntegrationPlugins"""
|
||||||
logger.info('Start loading plugins')
|
logger.info('Start loading plugins')
|
||||||
# set maintanace mode
|
# set maintanace mode
|
||||||
_maintenance = get_maintenance_mode()
|
_maintenance = bool(get_maintenance_mode())
|
||||||
if not _maintenance:
|
if not _maintenance:
|
||||||
set_maintenance_mode(True)
|
set_maintenance_mode(True)
|
||||||
|
|
||||||
|
|
@ -63,7 +63,7 @@ class PluginAppConfig(AppConfig):
|
||||||
"""unload and deactivate all IntegrationPlugins"""
|
"""unload and deactivate all IntegrationPlugins"""
|
||||||
logger.info('Start unloading plugins')
|
logger.info('Start unloading plugins')
|
||||||
# set maintanace mode
|
# set maintanace mode
|
||||||
_maintenance = get_maintenance_mode()
|
_maintenance = bool(get_maintenance_mode())
|
||||||
if not _maintenance:
|
if not _maintenance:
|
||||||
set_maintenance_mode(True)
|
set_maintenance_mode(True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue