def save_template_dict(self, templated_dict):
        if templated_dict:
            doc = self.dbs['template_dict'].get(self.plugin_name).result().json()
            if 'error' in doc:
                doc = {}
            doc.update({repr(k): v for k, v in templated_dict.items()})
            self.dbs['template_dict'][self.plugin_name] = doc
dataset/ETHPy150Open kootenpv/sky/sky/crawler_plugins.py/CrawlCloudantPluginNews.save_template_dict/original