From cc5896f52054775850cbc348969de99d4d56e548 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 4 Jun 2018 19:13:04 +0200 Subject: [PATCH] Fix flake8 warning --- activitypub.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/activitypub.py b/activitypub.py index dbe7601..cdb0bd1 100644 --- a/activitypub.py +++ b/activitypub.py @@ -30,15 +30,16 @@ ObjectType = Dict[str, Any] ObjectOrIDType = Union[str, ObjectType] -COLLECTION_CTX = [ +COLLECTION_CTX = [ "https://www.w3.org/ns/activitystreams", - "https://w3id.org/security/v1", + "https://w3id.org/security/v1", { "Hashtag": "as:Hashtag", "sensitive": "as:sensitive", } ] + class ActivityType(Enum): """Supported activity `type`.""" ANNOUNCE = 'Announce' @@ -1205,7 +1206,7 @@ def build_ordered_collection(col, q=None, cursor=None, map_func=None, limit=50, data = [_remove_id(doc) for doc in data] if map_func: data = [map_func(doc) for doc in data] - + # No cursor, this is the first page and we return an OrderedCollection if not cursor: resp = {