Browse Source

Do not list internal FlaskBB modules as plugins

Alec Nikolas Reiter 7 years ago
parent
commit
c04bda2b69
1 changed files with 2 additions and 0 deletions
  1. 2 0
      flaskbb/app.py

+ 2 - 0
flaskbb/app.py

@@ -436,6 +436,8 @@ def load_plugins(app):
     registered_names = set([p.name for p in plugins])
     unregistered = [
         PluginRegistry(name=name) for name in loaded_names - registered_names
+        # ignore internal FlaskBB modules
+        if not name.startswith('flaskbb.') and name != 'flaskbb'
     ]
     with app.app_context():
         db.session.add_all(unregistered)