File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1313
1414
1515github = Github ()
16- data_repo = github . get_repo ( "stellarcarbon/sc-data" )
16+ repo_name = "stellarcarbon/sc-data"
1717
1818
1919def download_compatible_dumps () -> Path :
20+ data_repo = github .get_repo (repo_name )
2021 package_version = metadata .version ("sc_audit" )
2122 matching_refs = data_repo .get_git_matching_refs ("tags/sc-audit" )
2223 for ref_obj in matching_refs :
@@ -34,6 +35,7 @@ def download_dumps(ref: Opt[str] = NotSet) -> Path:
3435 Download DB table dump files from GitHub and return the tempdir where they are located.
3536 The caller of this function is responsible for deleting the tempdir after loading the files.
3637 """
38+ data_repo = github .get_repo (repo_name )
3739 # note: the `get_contents` endpoint will fail for files >100 MB
3840 dump_cfiles = data_repo .get_contents ("sc-audit" , ref = ref )
3941 assert isinstance (dump_cfiles , list )
You can’t perform that action at this time.
0 commit comments