fix again

This commit is contained in:
Bhupesh Varshney 2023-02-09 11:48:19 +00:00
parent 41d8a9a170
commit 93928f88dc
2 changed files with 3 additions and 2 deletions

View File

@ -43,4 +43,5 @@ jobs:
REDDIT_CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET }}
REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD }}
run: |
python idcard_update/main.py
cd idcard_update
python main.py

View File

@ -13,7 +13,7 @@ client_secret = os.environ["REDDIT_CLIENT_SECRET"]
reddit_pass = os.environ["REDDIT_PASSWORD"]
def get_titles():
with open('idcard_update/dataset.json', 'r') as f:
with open('dataset.json', 'r') as f:
data = json.load(f)
titles = data['titles']