Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
whabanks committed Jul 9, 2024
1 parent 1a92a41 commit c91d8b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/template/template_category_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ def delete_template_category(template_category_id):
dao_delete_template_category_by_id(template_category_id, cascade=True)
return "", 200

template_category = dao_get_template_category_by_id(template_category_id)

if Template.query.filter_by(template_category_id=template_category_id).count() > 0:
return jsonify(message="Cannot delete a template category with templates assigned to it."), 400
else:
Expand Down

0 comments on commit c91d8b5

Please sign in to comment.