Skip to content

Commit

Permalink
Fixed dataset delete error
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks authored Feb 26, 2019
1 parent d7ac63e commit 997a5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class DatasetId(Resource):
def delete(self, dataset_id):
""" Deletes dataset by ID (only owners)"""

datasets = DatasetModel.objects(id=dataset_id, deleted=False).first()
dataset = DatasetModel.objects(id=dataset_id, deleted=False).first()

if dataset is None:
return {"message": "Invalid dataset id"}, 400
Expand Down

0 comments on commit 997a5f1

Please sign in to comment.