def search_by_status(cls, login, password, search_info): "Yes" tasks = TaskFunctions.search_by_header(search_info) is_valid_user = UsersFunctions.get_user_by_login_and_password( login, password) if is_valid_user is None: print("Пароль или логин введен неверно") else: for task in tasks: is_archive = ArchiveTask.is_task_archive(task) if is_archive is False and (task.owner == login or task.expert == login): print(task) # if __name__ == '__main__': # ArchiveTask.search_by_status('aa','aa', 'Задача 3') # ArchiveTask.print_non_archived_tasks('aa','aa') # ArchiveTask.group_by_tags('aa', 'aa') # TaskChangeMethods.change_parent_task(10) # i = 0 # while i != 5: # TaskAddMethods.add_task('aaaa', 'aaaa', 'Здача 3', 'Низкий','Др','Комментарий 3','11-11-2018','16:40','22-11-2018', '16:40', 'Выполняется') # i += 1 # HelpMethods.is_tasks_linked(1,2) # ParentTaskMethods.add_parent_for_task('aa', 'aa', 3, 2, 'aa') # LinkedTaskMethods.add_linked_task('aa', 'aa', 13, 14) # LinkedTaskMethods.delete_link_between_linked_task('aa', 'aa', 10, 11) # ParentTaskMethods.delete_link_between_task('aa','aa', 2, 1) # TaskDeleteMethods.delete_task('aa','aa',3) # LinkedTaskMethods.delete_link_between_linked_task('aa','aa',1,2)
def search_by_tags(cls, login, password, search_info): "Yes" tasks = TaskFunctions.search_by_header(search_info) is_valid_user = UsersFunctions.get_user_by_login_and_password( login, password) if is_valid_user is None: print("Пароль или логин введен неверно") else: for task in tasks: is_archive = ArchiveTask.is_task_archive(task) if is_archive is False and (task.owner == login or task.expert == login): print(task)