@@ -57,7 +57,7 @@ def update_index(self, index: Dict, code_json: Dict, org_name: str, repo_name: s
5757
5858 index ['releases' ].append (baseline )
5959
60- def get_org_repos (self , org_name : str ) -> List [Organization ]:
60+ def get_org_repos (self , org_name : str ) -> list [Organization ]:
6161 try :
6262 org = self .github .get_organization (org_name )
6363 print (f"\n Processing organization: { org_name } " )
@@ -71,18 +71,20 @@ def get_org_repos(self, org_name: str) -> List[Organization]:
7171
7272 def save_organization_files (self , org_name : str , codeJSONPath ) -> None :
7373 try :
74+ org = self .github .get_organization (org_name )
7475 total_repos = self .get_org_repos (org_name )
7576
7677 for id , repo in enumerate (org .get_repos (type = 'public' ), 1 ):
7778 print (f"\n Saving codeJSON for { repo .name } [{ id } /{ total_repos } ]" )
7879
7980 repoPath = os .path .join (codeJSONPath , (repo .name + '.json' ))
80- code_json = self .save_code_json (repoPath )
81+ code_json = self .save_code_json (repo , repoPath )
8182 except GithubException as e :
8283 print (f"Error processing organization { org_name } : { str (e )} " )
8384
8485 def process_organization (self , org_name : str ) -> None :
8586 try :
87+ org = self .github .get_organization (org_name )
8688 total_repos = self .get_org_repos (org_name )
8789
8890 for id , repo in enumerate (org .get_repos (type = 'public' ), 1 ):
0 commit comments