File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def df_to_db(file_paths:list):
9696 df = df_add_urls (file_paths )
9797 # filepath below must match steps in assoc CI Job, 'with path: app/dev'
9898 # for testing use: ("./sample_db_prd.json")
99- rev_json = Path ('. /sample_db_prd.json' )
99+ rev_json = Path ('app/dev/src/docs/_static /sample_db_prd.json' )
100100 db = df .to_json (rev_json , orient = 'records' )
101101 return db
102102
@@ -111,11 +111,11 @@ def count_json_recs(filename:str):
111111def main ():
112112 '''Orchestrate sequence of steps to output sample_db_prd.json'''
113113 rootdir = sys .argv [- 1 ]
114- file_paths = make_json_list ("./oneAPI-samples" )
114+ file_paths = make_json_list (rootdir )
115115 merge_json_files (file_paths )
116116 json_db = df_to_db (file_paths )
117117 # for testing use: ("./sample_db_prd.json")
118- count_json_recs ("./sample_db_prd.json" )
118+ # count_json_recs("./sample_db_prd.json")
119119 return json_db
120120
121121if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments