diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 4240d66..b09b72b 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 diff --git a/idcard_update/main.py b/idcard_update/main.py index 10a2532..5a07e67 100644 --- a/idcard_update/main.py +++ b/idcard_update/main.py @@ -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']