dev #8
22
track.py
22
track.py
@@ -94,18 +94,22 @@ def main():
|
||||
|
||||
logging.info(f"{Fore.YELLOW}Получение Типов деятельности{Fore.RESET}")
|
||||
activity_types = red.get_time_entry_activities()
|
||||
Опти
|
||||
if tags:
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Тегов{Fore.RESET}")
|
||||
db.insert_tags(tags)
|
||||
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Тегов{Fore.RESET}")
|
||||
db.insert_tags(tags)
|
||||
if issues:
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Задач Redmine{Fore.RESET}")
|
||||
db.insert_tasks(issues)
|
||||
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Задач Redmine{Fore.RESET}")
|
||||
db.insert_tasks(issues)
|
||||
if vetro_projects:
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Проектов Ветро{Fore.RESET}")
|
||||
db.insert_vetro_projects(vetro_projects)
|
||||
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Проектов Ветро{Fore.RESET}")
|
||||
db.insert_vetro_projects(vetro_projects)
|
||||
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Типов деятелности{Fore.RESET}")
|
||||
db.insert_activity_types(activity_types)
|
||||
if activity_types:
|
||||
logging.info(f"{Fore.YELLOW}Сохранение Типов деятелности{Fore.RESET}")
|
||||
db.insert_activity_types(activity_types)
|
||||
except Exception as e:
|
||||
logger.error(Fore.RED + f"Ошибка при обновлении базы данных: {e}" + Fore.RESET)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user