Skip to content

Commit

Permalink
updated script
Browse files Browse the repository at this point in the history
  • Loading branch information
neo7337 committed Oct 25, 2024
1 parent 626b7d4 commit bb26aca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/updateDb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
pip install -r requirements.txt
- name: Update DB
env:
IH_URL: ${{ vars.IH_URL }}
IH_KEY: ${{ vars.IH_KEY }}
TTH_URL: ${{ vars.TTH_URL }}
TTH_KEY: ${{ vars.TTH_KEY }}
BKT_URL: ${{ vars.BKT_URL }}
BKT_KEY: ${{ vars.BKT_KEY }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_URI: ${{ secrets.DB_URI }}
COLLECTION_NAME: ${{ secrets.COLLECTION_NAME }}
Expand Down
10 changes: 5 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def main(output_path):

# orgs_list = org.split(",")
input_path_list = get_all_data_files("./data")
print(input_path_list)
# print(input_path_list)
# if len(orgs_list) is not len(input_path_list):
# print("Please enter correct input")
# print(f"Orgs: {orgs_list} should be equivalent to input paths provided: {input_path_list}")
Expand All @@ -149,11 +149,11 @@ def main(output_path):

save_json(complied_output, output_path)

print(complied_output)
# print(complied_output)

# db_handler = DBHandler(complied_output)
# db_handler.update_data()
# print(result)
db_handler = DBHandler(complied_output)
db_handler.update_data()
print(result)

if __name__ == "__main__":
args=parser.parse_args()
Expand Down

0 comments on commit bb26aca

Please sign in to comment.