コード例 #1
0
 def put(self, working_file_id):
     working_file = files_service.get_working_file(working_file_id)
     task = tasks_service.get_task(working_file["task_id"])
     user_service.check_project_access(task["project_id"])
     working_file = files_service.update_working_file(
         working_file_id, {"updated_at": datetime.datetime.utcnow()})
     return working_file
コード例 #2
0
ファイル: resources.py プロジェクト: NeroSouza/zou
 def put(self, working_file_id):
     working_file = files_service.get_working_file(working_file_id)
     task = tasks_service.get_task(working_file["task_id"])
     if not permissions.has_manager_permissions():
         user_service.check_has_task_related(task["project_id"])
     working_file = files_service.update_working_file(
         working_file_id,
         {"updated_at": datetime.datetime.utcnow()}
     )
     return working_file
コード例 #3
0
 def update_comment(self, working_file_id, comment):
     working_file = files_service.update_working_file(
         working_file_id, {"comment": comment}
     )
     return working_file