Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #14 from hecticjeff/delete-record
Browse files Browse the repository at this point in the history
Fix delete_record method
  • Loading branch information
Kenneth Reitz committed Apr 15, 2013
2 parents 703ed8f + fb0edca commit e9cff5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elephant.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ def put_record(uuid):
return get_record(uuid)

@app.route('/<uuid>', methods=['DELETE'])
def delete_record(collection, uuid):
def delete_record(uuid):
"""Deletes a given record."""

paywall(safe=False)

COLLECTION[uuid].delete()
return redirect('/{}/'.format(collection))
return redirect('/')

if __name__ == '__main__':
manager.run()

0 comments on commit e9cff5c

Please sign in to comment.