From 3a0025b105cc4f200b8dd09c840f4e745d2e2d9d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 23 Mar 2021 13:28:05 -0700 Subject: [PATCH] Python formatting --- bookwyrm/management/commands/rebuild_feeds.py | 2 ++ bookwyrm/views/updates.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/management/commands/rebuild_feeds.py b/bookwyrm/management/commands/rebuild_feeds.py index ce7ead0f..70d4dd98 100644 --- a/bookwyrm/management/commands/rebuild_feeds.py +++ b/bookwyrm/management/commands/rebuild_feeds.py @@ -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( diff --git a/bookwyrm/views/updates.py b/bookwyrm/views/updates.py index 13ad8513..cc5fc419 100644 --- a/bookwyrm/views/updates.py +++ b/bookwyrm/views/updates.py @@ -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: