From 6b84798d4a7f34de698e933652cd9312a9e8c2e8 Mon Sep 17 00:00:00 2001 From: Laura Hawkins Date: Sat, 30 May 2015 20:00:29 -0700 Subject: [PATCH] sorry guys, trying to see if this works --- flashcards/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/notifications.py b/flashcards/notifications.py index 4012ca5..1a8af0d 100644 --- a/flashcards/notifications.py +++ b/flashcards/notifications.py @@ -27,7 +27,7 @@ def notify_pull(flashcard): message = RedisMessage(ws_message) redis_publisher.publish_message(message) -def notify_new_card(flashcard): +def notify_deck_new_card(flashcard): redis_publisher = RedisPublisher(facility='deck/%d' % flashcard.section_id, broadcast=True) ws_message = JSONRenderer().render( {'event_type': 'new_card', 'flashcard': serializers.FlashcardSerializer(flashcard).data}) -- 1.9.1