Skip to content

Commit 8fa987b

Browse files
committed
Modify filepaths relative to local dir and sample_db_prd.json
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent 0c35c55 commit 8fa987b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/db.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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('app/dev/src/docs/_static/sample_db_prd.json')
99+
rev_json = Path('src/docs/_static/sample_db_prd.json')
100100
db = df.to_json(rev_json, orient='records')
101101
return db
102102

@@ -114,8 +114,7 @@ def main():
114114
file_paths = make_json_list(rootdir)
115115
merge_json_files(file_paths)
116116
json_db = df_to_db(file_paths)
117-
# for testing use: ("./sample_db_prd.json")
118-
# count_json_recs("./sample_db_prd.json")
117+
count_json_recs("src/docs/_static/sample_db_prd.json")
119118
return json_db
120119

121120
if __name__ == "__main__":

0 commit comments

Comments
 (0)