Skip to content

Commit

Permalink
bug in deleting code which threw an error on deleting an image
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Mar 9, 2009
1 parent 645e88e commit 488900d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def post(self):
user = users.get_current_user()
key = self.request.get("key")
if key:
image = db.get()
image = db.get(key)
# check that we own this image
if image.user == user:
image.delete()
Expand Down

0 comments on commit 488900d

Please sign in to comment.