Skip to content

Commit

Permalink
The label is the reminder in this loop
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Nov 10, 2011
1 parent e1e1447 commit e4fa401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reminders/views.py
Expand Up @@ -10,6 +10,6 @@ def dismiss(request, label):
if not settings.REMINDERS.get(label).get("dismissable", True):
return HttpResponse(status=409)
for reminder in settings.REMINDERS:
if reminder.get("label") == label and reminder.get("dismissable", True):
if reminder == label and settings.REMINDERS[reminder].get("dismissable", True):
request.session[label] = "dismissed"
return HttpResponse()

0 comments on commit e4fa401

Please sign in to comment.