Exemple #1
0
    def replace_user_dict(self, new_dict):
        self.user_dict = new_dict
        logger.info("User dictionary has been replaced")

        save_dict(self.user_dict, self._dict_source)
        logger.info("User dictionary has been saved")
Exemple #2
0
    def update_user_dict(self, new_dict):
        self.user_dict.update(new_dict)
        logger.info("User dictionary has been updated")

        save_dict(self.user_dict, self._dict_source)
        logger.info("User dictionary has been saved")