Слегка изменил отображение процесса занесения трудочасов

This commit is contained in:
2026-07-01 16:25:12 +03:00
parent fa97f75fbe
commit 8d19e1d43f

View File

@@ -59,14 +59,14 @@ class RedmineAPI(RedmineConfig):
if on_success:
on_success(activity)
tracked.append(activity)
logger.info(f"{Fore.GREEN}{activity} успешно занесена в Redmine{Fore.RESET}".ljust(60) + "")
logger.info(f"{Fore.GREEN}{activity}: успешно {Fore.RESET}".ljust(100) + "")
else:
try:
errors = resp.json()["errors"]
except Exception:
errors = resp.text
logger.debug(errors)
logger.error(f"{Fore.RED}{activity} не была занесена в Redmine{Fore.RESET}".ljust(60) + "")
logger.error(f"{Fore.RED}{activity}: с ошибкой {Fore.RESET}".ljust(100) + "")
logger.error(f"{errors} {resp.status_code}")
failed_activities.append(activity)
except Exception as e: