mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-27 18:40:31 +00:00
Python formatting
This commit is contained in:
parent
1fa7330595
commit
3a0025b105
2 changed files with 3 additions and 1 deletions
|
@ -8,10 +8,12 @@ r = redis.Redis(
|
|||
host=settings.REDIS_ACTIVITY_HOST, port=settings.REDIS_ACTIVITY_PORT, db=0
|
||||
)
|
||||
|
||||
|
||||
def erase_feeds():
|
||||
""" throw the whole redis away """
|
||||
r.flushall()
|
||||
|
||||
|
||||
def create_feeds():
|
||||
""" build all the fields for all the users """
|
||||
users = models.User.objects.filter(
|
||||
|
|
|
@ -16,7 +16,7 @@ def get_notification_count(request):
|
|||
|
||||
|
||||
@login_required
|
||||
def get_unread_status_count(request, stream='home'):
|
||||
def get_unread_status_count(request, stream="home"):
|
||||
""" any unread statuses for this feed? """
|
||||
stream = activitystreams.streams.get(stream)
|
||||
if not stream:
|
||||
|
|
Loading…
Reference in a new issue