(self, public_read, public_edit)
update privilege
        :param public_read: all user could view and download this data
        :param public_edit: all user could label this data
        :return:
update privilege
        :param public_read: all user could view and download this data
        :param public_edit: all user could label this data
        :return:
update privilege : param public_read : all user could view and download this data : param public_edit : all user could label this data : return :
def update_privilege(self, public_read, public_edit):
        """
        update privilege
        :param public_read: all user could view and download this data
        :param public_edit: all user could label this data
        :return:
        """
        DataAbstract.query.filter_by(id=self.get_id()).update({
            DataAbstract.public_read: public_read,
            DataAbstract.public_edit: public_edit
        })
        db.session.commit()
def update_privilege ( self , public_read , public_edit ) : DataAbstract . query . filter_by ( id = self . get_id ( ) ) . update ( { DataAbstract . public_read : public_read , DataAbstract . public_edit : public_edit } ) db . session . commit ( )