Изменил отображение даты промежутка сбора активностей

This commit is contained in:
2025-05-26 18:07:20 +03:00
parent 7a9817c0aa
commit 21b202f090
2 changed files with 22 additions and 1 deletions

View File

@@ -41,7 +41,13 @@ def main():
start = today_start()
end = today_end()
else:
logger.info("Парсим задачи" + (f" с {start.date()} " if start else " ") + (f"до {end.date()}" if end else ""))
if start:
from_ = f"{start.day} {config.MONTHS.get(start.month)} {start.year} г."
if end:
to_ = f"{end.day} {config.MONTHS.get(end.month)} {end.year} г."
logger.info(Fore.YELLOW + "Парсим задачи" + (f" с {from_} " if start else " ") + (f"до {to_}" if end else "") + Fore.RESET)
clock = ClockifyAPI(
token=config.CLOCKIFY_TOKEN,