Permalink
Browse files

Fix error on redis implementation after migrating to pyredis 3.0

  • Loading branch information...
yabirgb committed Jan 31, 2019
1 parent 0e264cc commit 5835a74aa477ac0b946885cfcd0bae9b4c1055b9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/managers/timeline_manager.py
@@ -39,7 +39,7 @@ def push_home(self, status):
timeline_name = self.HOME_TIMELINE.format(self.user.id)


self.r.zadd(timeline_name, status.id, status.id)
self.r.zadd(timeline_name, {status.id: status.id})

def remove_from_home(self, status):

@@ -62,7 +62,7 @@ def push_notification(self, notification:Notification) -> None:
"""

timeline_name = self.NOTIFICATIONS.format(self.user.id)
self.r.zadd(timeline_name, notification.id, notification.id)
self.r.zadd(timeline_name, {notification.id: notification.id})

def remove_notification(self, notification:Notification)->None:
timeline_name = self.HOME_TIMELINE.format(self.user.id)

0 comments on commit 5835a74

Please sign in to comment.