Skip to content

Commit

Permalink
Fix filepaths.
Browse files Browse the repository at this point in the history
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
  • Loading branch information
mvincerx committed Mar 30, 2024
1 parent 7ba9b92 commit 0c35c55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def df_to_db(file_paths:list):
df = df_add_urls(file_paths)
# filepath below must match steps in assoc CI Job, 'with path: app/dev'
# for testing use: ("./sample_db_prd.json")
rev_json = Path('./sample_db_prd.json')
rev_json = Path('app/dev/src/docs/_static/sample_db_prd.json')
db = df.to_json(rev_json, orient='records')
return db

Expand All @@ -111,11 +111,11 @@ def count_json_recs(filename:str):
def main():
'''Orchestrate sequence of steps to output sample_db_prd.json'''
rootdir = sys.argv[-1]
file_paths = make_json_list("./oneAPI-samples")
file_paths = make_json_list(rootdir)
merge_json_files(file_paths)
json_db = df_to_db(file_paths)
# for testing use: ("./sample_db_prd.json")
count_json_recs("./sample_db_prd.json")
# count_json_recs("./sample_db_prd.json")
return json_db

if __name__ == "__main__":
Expand Down

0 comments on commit 0c35c55

Please sign in to comment.