def refresh_github_ids(self): if not self.github_owner: return None self.github_api_raw = github_api.get_repo_data(self.github_owner, self.github_repo_name) try: (self.github_owner, self.github_repo_name) = self.github_api_raw["full_name"].split("/") except KeyError: self.github_owner = None self.github_repo_name = None
def set_github_about(self): self.api_raw = github_api.get_repo_data(self.login, self.repo_name) return self.api_raw