Skip to content

Commit

Permalink
Modify filepaths relative to local dir and sample_db_prd.json
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 0c35c55 commit 8fa987b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 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('app/dev/src/docs/_static/sample_db_prd.json')
rev_json = Path('src/docs/_static/sample_db_prd.json')
db = df.to_json(rev_json, orient='records')
return db

Expand All @@ -114,8 +114,7 @@ def main():
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("src/docs/_static/sample_db_prd.json")
return json_db

if __name__ == "__main__":
Expand Down

0 comments on commit 8fa987b

Please sign in to comment.