|
|
@ -1,13 +1,14 @@
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
from typing import Union
|
|
|
|
|
|
|
|
from os import getenv
|
|
|
|
from os import getenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from praw.models import Submission
|
|
|
|
|
|
|
|
|
|
|
|
from utils.console import print_step
|
|
|
|
from utils.console import print_step
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_done(
|
|
|
|
def check_done(
|
|
|
|
redditobj: dict[str],
|
|
|
|
redditobj: dict[str],
|
|
|
|
) -> Union[dict[str], None]:
|
|
|
|
) -> Submission:
|
|
|
|
# don't set this to be run anyplace that isn't subreddit.py bc of inspect stack
|
|
|
|
# don't set this to be run anyplace that isn't subreddit.py bc of inspect stack
|
|
|
|
"""Checks if the chosen post has already been generated
|
|
|
|
"""Checks if the chosen post has already been generated
|
|
|
|
|
|
|
|
|
|
|
|