@classmethod
def update_db(self):
    'Updates the db with new Blink components from the json endpoint'
    self.fetch_wf_content_for_components(update_cache=True)
    new_components = self.fetch_all_components(update_cache=True)
    existing_comps = self.all().fetch(None)
    for name in new_components:
        if (not len([x.name for x in existing_comps if (x.name == name)])):
            logging.info(('Adding new BlinkComponent: ' + name))
            c = BlinkComponent(name=name)
            c.put()
Updates the db with new Blink components from the json endpoint
@classmethod
def update_db(self):
    
    self.fetch_wf_content_for_components(update_cache=True)
    new_components = self.fetch_all_components(update_cache=True)
    existing_comps = self.all().fetch(None)
    for name in new_components:
        if (not len([x.name for x in existing_comps if (x.name == name)])):
            logging.info(('Adding new BlinkComponent: ' + name))
            c = BlinkComponent(name=name)
            c.put()