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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixup 6d8c100
  • Loading branch information
tdemin committed Aug 12, 2019
1 parent 6d8c100 commit 5a946ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project_amber/helpers/task.py
Expand Up @@ -12,7 +12,10 @@ def addTask(text: str, status: int, parent_id: int) -> int:
"""
task_time = time()
gen = 0
if not parent_id is None and parent_id != 0:
# FIXME: dirty, and is really supposed to be fixed at another level
if parent_id == 0:
parent_id = None
if not parent_id is None:
parent = db.session.query(Task)\
.filter_by(id=parent_id, owner=request.user.id).one_or_none()
if parent is None:
Expand Down

0 comments on commit 5a946ca

Please sign in to comment.