fix filepath

This commit is contained in:
Bhupesh Varshney 2023-02-09 11:44:05 +00:00
parent 8cc7041f3b
commit 41d8a9a170

View File

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