Skip update on non wordle golf days

This commit is contained in:
2022-06-17 17:02:36 -05:00
parent 48d42c2a4b
commit feeaba2c65

View File

@@ -115,6 +115,9 @@ def _save_db_scores(
async def main_update(
wordle_day: wordlinator.utils.WordleDay = wordlinator.utils.WORDLE_TODAY,
):
if not wordle_day.golf_hole:
rich.print("[yellow]Today isn't a #WordleGolf day!")
exit()
sheets_client = wordlinator.sheets.SheetsClient(wordle_day=wordle_day)
today_scores = await get_scores(wordle_day=wordle_day)