From 7e75b7e7df6eae9c0e5f8072bd52fc0ff72e0add Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 15 Jul 2019 23:10:24 +0200 Subject: [PATCH] Formatting --- activitypub.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/activitypub.py b/activitypub.py index b49b12a..8b5797e 100644 --- a/activitypub.py +++ b/activitypub.py @@ -674,7 +674,13 @@ def gen_feed(): fg.logo(ME.get("icon", {}).get("url")) fg.language("en") for item in DB.activities.find( - {"box": Box.OUTBOX.value, "type": "Create", "meta.deleted": False, "meta.public": True}, limit=10 + { + "box": Box.OUTBOX.value, + "type": "Create", + "meta.deleted": False, + "meta.public": True, + }, + limit=10, ).sort("_id", -1): fe = fg.add_entry() fe.id(item["activity"]["object"].get("url")) @@ -688,7 +694,13 @@ def json_feed(path: str) -> Dict[str, Any]: """JSON Feed (https://jsonfeed.org/) document.""" data = [] for item in DB.activities.find( - {"box": Box.OUTBOX.value, "type": "Create", "meta.deleted": False, "meta.public": True}, limit=10 + { + "box": Box.OUTBOX.value, + "type": "Create", + "meta.deleted": False, + "meta.public": True, + }, + limit=10, ).sort("_id", -1): data.append( {