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
Fix yet another API bug
  • Loading branch information
tdemin committed Aug 12, 2019
1 parent c6885dd commit 6d8c100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_amber/helpers/task.py
Expand Up @@ -12,7 +12,7 @@ def addTask(text: str, status: int, parent_id: int) -> int:
"""
task_time = time()
gen = 0
if not parent_id is None:
if not parent_id is None and parent_id != 0:
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 6d8c100

Please sign in to comment.