Skip to content

Commit

Permalink
delete fundraiser bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongxuanWang committed Dec 3, 2023
1 parent 190cf79 commit a3a2211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fundraisers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def delete_fundraiser_by_id(fundraiser_id):
Deletes fundraiser by its id
"""

fundraiser = get_by_fundraiser_id(fundraiser_id=fundraiser_id)
fundraiser = Fundraiser.query.filter_by(id=fundraiser_id).first()

# If and only if the return is tuple, the error was prompted in the getting function
if isinstance(fundraiser, tuple):
Expand Down

0 comments on commit a3a2211

Please sign in to comment.