Небольшой рефактор

This commit is contained in:
2025-06-23 16:45:17 +03:00
parent 57556bafc5
commit f0233d2683
4 changed files with 17 additions and 6 deletions

View File

@@ -31,9 +31,6 @@ class RedmineAPI(RedmineConfig):
is_beginner = config.is_beginner
if is_beginner:
logging.info(f"{Fore.YELLOW}Делим трудочасы пополам{Fore.RESET}")
if len(activities) == 0:
logger.info(Fore.YELLOW + "Нет задач для занесения трудочасов" + Fore.RESET)
return
tracked = []
for activity in tqdm(activities, desc="Занесение трудочасов"):
if not(not activity.is_tracked and activity.date_end):