From 93928f88dc7d4f784aeff3bcfa7f0bd335cb1dd5 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 9 Feb 2023 11:48:19 +0000 Subject: [PATCH] fix again --- .github/workflows/python-app.yml | 3 ++- idcard_update/main.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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']