Permalink
Browse files

The label is the reminder in this loop

  • Loading branch information...
paltman committed Nov 10, 2011
1 parent e1e1447 commit e4fa401c6ccc2cb5950bff7bbce29129b5b1167b
Showing with 1 addition and 1 deletion.
  1. +1 −1 reminders/views.py
View
@@ -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.