mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Python formatting
This commit is contained in:
parent
44e87c01ab
commit
b9514ec81f
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ class ActivityStream(ABC):
|
|||
for status in statuses:
|
||||
pipeline.zadd(self.stream_id(viewer), self.get_value(status))
|
||||
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()
|
||||
|
||||
def remove_user_statuses(self, viewer, user):
|
||||
|
|
Loading…
Reference in a new issue