From 8bc72da9c4e2771e617c3dda1005247ecec927ac Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Tue, 5 Jul 2022 21:34:09 +0100 Subject: [PATCH] refactor: utils/videos.py uses new toml config --- utils/videos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/videos.py b/utils/videos.py index 07659f6..4e248b9 100755 --- a/utils/videos.py +++ b/utils/videos.py @@ -1,11 +1,11 @@ import json import os import time -from os import getenv from typing import Dict from praw.models import Submission +from utils import settings from utils.console import print_step @@ -25,7 +25,7 @@ def check_done( done_videos = json.load(done_vids_raw) for video in done_videos: if video["id"] == str(redditobj): - if getenv("POST_ID"): + if settings.config["reddit"]["thread"]["post_id"]: print_step( "You already have done this video but since it was declared specifically in the .env file the program will continue" )