diff --git a/monitor_fixed_trophies.py b/monitor_fixed_trophies.py index f5f9c3a12..29554b865 100644 --- a/monitor_fixed_trophies.py +++ b/monitor_fixed_trophies.py @@ -8,11 +8,11 @@ ) from src.webhook_utils import WEBHOOK_KEYWORD_FIXED_TROPHY -from src.git_utils import data_is_new +from src.git_utils import daily_data_has_just_been_fetched def main() -> None: - if data_is_new(): + if daily_data_has_just_been_fetched(): try: data_yesterday = load_json(fname=get_fname_for_yesterday()) except FileNotFoundError: diff --git a/src/git_utils.py b/src/git_utils.py index 1760c0f56..ce2e18f67 100644 --- a/src/git_utils.py +++ b/src/git_utils.py @@ -37,7 +37,7 @@ def filter_status(stdout, pattern): return [line for line in stdout.split(LINE_SEPARATOR) if pattern in line] -def data_is_new(): +def daily_data_has_just_been_fetched(): stdout, stderr = git_status() return filter_status(stdout, DATA_NAME_PATTERN)