From 137e48f922d6b5c691526faf12c3ff95412ef19a Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Wed, 3 Jun 2015 04:32:44 -0700 Subject: [PATCH] Fixed stupid indexing bug --- flashcards/management/commands/notifyusers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/management/commands/notifyusers.py b/flashcards/management/commands/notifyusers.py index deec73a..0b51b60 100644 --- a/flashcards/management/commands/notifyusers.py +++ b/flashcards/management/commands/notifyusers.py @@ -18,4 +18,4 @@ class Command(BaseCommand): notify_list = map(lambda x: x[0], notify_filter) for user in User.objects.filter(pk__in=notify_list): - user[0].notify() + user.notify() -- 1.9.1