Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Revert "Fix #10". This reverts commit 744de5c.
Browse files Browse the repository at this point in the history
This commit has broken all PATCH requests.
  • Loading branch information
tdemin committed Jan 17, 2020
1 parent 744de5c commit 9eb0785
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions project_amber/controllers/task.py
Expand Up @@ -78,9 +78,6 @@ def update_task(self, task_id: int, data: dict) -> int:
"""
task = self.get_task(task_id)
new_details = Task(self.user.id, data)
# will drop 404 on a non-existent PID
# TODO: a little too hackish
self.get_task(new_details.parent_id)
task.merge(new_details)
if not new_details.parent_id is None:
if new_details.parent_id == 0:
Expand Down

0 comments on commit 9eb0785

Please sign in to comment.