Compare commits
2 Commits
f0233d2683
...
46997ff572
| Author | SHA1 | Date | |
|---|---|---|---|
| 46997ff572 | |||
| 4428fa2881 |
4
track.py
4
track.py
@@ -95,15 +95,19 @@ def main():
|
|||||||
logging.info(f"{Fore.YELLOW}Получение Типов деятельности{Fore.RESET}")
|
logging.info(f"{Fore.YELLOW}Получение Типов деятельности{Fore.RESET}")
|
||||||
activity_types = red.get_time_entry_activities()
|
activity_types = red.get_time_entry_activities()
|
||||||
|
|
||||||
|
if tags:
|
||||||
logging.info(f"{Fore.YELLOW}Сохранение Тегов{Fore.RESET}")
|
logging.info(f"{Fore.YELLOW}Сохранение Тегов{Fore.RESET}")
|
||||||
db.insert_tags(tags)
|
db.insert_tags(tags)
|
||||||
|
|
||||||
|
if issues:
|
||||||
logging.info(f"{Fore.YELLOW}Сохранение Задач Redmine{Fore.RESET}")
|
logging.info(f"{Fore.YELLOW}Сохранение Задач Redmine{Fore.RESET}")
|
||||||
db.insert_tasks(issues)
|
db.insert_tasks(issues)
|
||||||
|
|
||||||
|
if vetro_projects:
|
||||||
logging.info(f"{Fore.YELLOW}Сохранение Проектов Ветро{Fore.RESET}")
|
logging.info(f"{Fore.YELLOW}Сохранение Проектов Ветро{Fore.RESET}")
|
||||||
db.insert_vetro_projects(vetro_projects)
|
db.insert_vetro_projects(vetro_projects)
|
||||||
|
|
||||||
|
if activity_types:
|
||||||
logging.info(f"{Fore.YELLOW}Сохранение Типов деятелности{Fore.RESET}")
|
logging.info(f"{Fore.YELLOW}Сохранение Типов деятелности{Fore.RESET}")
|
||||||
db.insert_activity_types(activity_types)
|
db.insert_activity_types(activity_types)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user