(self, settings, actions)
return settings.as_dict()
Update the settings according to the actions
Update the settings according to the actions
Update the settings according to the actions
def update_settings(self, settings, actions):
        """Update the settings according to the actions"""
        for key, value in actions.get("set", {}).items():
            settings.set_setting(key, value)

        for key in actions.get("remove", []):
            settings.del_setting(key)

        settings.save()
        return settings.as_dict()
def update_settings ( self , settings , actions ) : for key , value in actions . get ( "set" , { } ) . items ( ) : settings . set_setting ( key , value ) for key in actions . get ( "remove" , [ ] ) : settings . del_setting ( key ) settings . save ( ) return settings . as_dict ( )