def switch_https(self): results = self.get_results() if not results: logger.error('No matching service') else: for r in results: if r.url: r.url = WebUtils.switch_http_https(r.url) self.sqlsess.commit() logger.success('Switch done')
def switch_https(self): """Switch between HTTP and HTTPS on selected services""" results = self.get_results() if not results: logger.error('No matching service') else: for r in results: if r.url: r.url = WebUtils.switch_http_https(r.url) self.sqlsess.commit() logger.success('Switch done')