Python formatting

This commit is contained in:
Mouse Reeve 2021-04-03 11:11:29 -07:00
parent 44e87c01ab
commit b9514ec81f

View file

@ -57,7 +57,9 @@ class ActivityStream(ABC):
for status in statuses: for status in statuses:
pipeline.zadd(self.stream_id(viewer), self.get_value(status)) pipeline.zadd(self.stream_id(viewer), self.get_value(status))
if statuses: if statuses:
pipeline.zremrangebyrank(self.stream_id(user), settings.MAX_STREAM_LENGTH, -1) pipeline.zremrangebyrank(
self.stream_id(user), settings.MAX_STREAM_LENGTH, -1
)
pipeline.execute() pipeline.execute()
def remove_user_statuses(self, viewer, user): def remove_user_statuses(self, viewer, user):