Delete missing modules not activated when updating module list
issue6472 review42271002
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Delete missing modules not activated when updating module list
|
||||
* Remove empty pages from notebook
|
||||
* Allow to store Dict as JSON on the database
|
||||
|
||||
|
||||
@@ -285,6 +285,8 @@ class Module(ModelSQL, ModelView):
|
||||
|
||||
modules = cls.search([])
|
||||
name2module = dict((m.name, m) for m in modules)
|
||||
cls.delete([m for m in modules
|
||||
if m.state != 'activated' and m.name not in module_names])
|
||||
|
||||
# iterate through activated modules and mark them as being so
|
||||
for name in module_names:
|
||||
|
||||
Reference in New Issue
Block a user