Commit 6b84798d4a7f34de698e933652cd9312a9e8c2e8

Authored by Laura Hawkins
1 parent 02eacb90d2
Exists in master

sorry guys, trying to see if this works

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/notifications.py View file @ 6b84798
... ... @@ -27,7 +27,7 @@
27 27 message = RedisMessage(ws_message)
28 28 redis_publisher.publish_message(message)
29 29  
30   -def notify_new_card(flashcard):
  30 +def notify_deck_new_card(flashcard):
31 31 redis_publisher = RedisPublisher(facility='deck/%d' % flashcard.section_id, broadcast=True)
32 32 ws_message = JSONRenderer().render(
33 33 {'event_type': 'new_card', 'flashcard': serializers.FlashcardSerializer(flashcard).data})