Updating string format syntax part 1
This commit is contained in:
@ -16,11 +16,11 @@ class ActivityStream(RedisStore):
|
||||
|
||||
def stream_id(self, user):
|
||||
"""the redis key for this user's instance of this stream"""
|
||||
return "{}-{}".format(user.id, self.key)
|
||||
return f"{user.id}-{self.key}"
|
||||
|
||||
def unread_id(self, user):
|
||||
"""the redis key for this user's unread count for this stream"""
|
||||
return "{}-unread".format(self.stream_id(user))
|
||||
return "{}-unread".format(self.stream_id(user)) # pylint: disable=consider-using-f-string
|
||||
|
||||
def get_rank(self, obj): # pylint: disable=no-self-use
|
||||
"""statuses are sorted by date published"""
|
||||
|
Reference in New Issue
Block a user