Browse Source

Merge pull request #547 from hjlarry/master

fix an extra parameter
Peter Justin 4 years ago
parent
commit
10e6f57c58
2 changed files with 2 additions and 2 deletions
  1. 1 1
      flaskbb/management/models.py
  2. 1 1
      flaskbb/management/views.py

+ 1 - 1
flaskbb/management/models.py

@@ -68,7 +68,7 @@ class Setting(db.Model, CRUDMixin):
         return cls.query.all()
 
     @classmethod
-    def update(cls, settings, app=None):
+    def update(cls, settings):
         """Updates the cache and stores the changes in the
         database.
 

+ 1 - 1
flaskbb/management/views.py

@@ -122,7 +122,7 @@ class ManagementSettings(MethodView):
             if plugin_obj is not None:
                 plugin_obj.update_settings(new_settings)
             else:
-                Setting.update(settings=new_settings, app=current_app)
+                Setting.update(settings=new_settings)
 
             flash(_("Settings saved."), "success")