From d8eb8ad3754614cf233789cd69184dedd8cc571c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2019 16:03:54 +0000 Subject: [PATCH] Indentation --- bookmarks.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bookmarks.py b/bookmarks.py index 6e5d6f07..0b311ae1 100644 --- a/bookmarks.py +++ b/bookmarks.py @@ -65,8 +65,8 @@ def undoBookmarksCollectionEntry(baseDir: str,postFilename: str,objectUrl: str, if bookmarkItem['actor']==actor: if debug: print('DEBUG: bookmark was removed for '+actor) - postJsonObject['object']['bookmarks']['items'].remove(bookmarkItem) - itemFound=True + postJsonObject['object']['bookmarks']['items'].remove(bookmarkItem) + itemFound=True break if not itemFound: @@ -153,17 +153,17 @@ def updateBookmarksCollection(baseDir: str,postFilename: str, \ if not postJsonObject['object'].get('bookmarks'): if debug: print('DEBUG: Adding initial bookmarks to '+objectUrl) - bookmarksJson = { - "@context": "https://www.w3.org/ns/activitystreams", - 'id': objectUrl, - 'type': 'Collection', - "totalItems": 1, - 'items': [{ - 'type': 'Bookmark', - 'actor': actor - }] - } - postJsonObject['object']['bookmarks']=bookmarksJson + bookmarksJson = { + "@context": "https://www.w3.org/ns/activitystreams", + 'id': objectUrl, + 'type': 'Collection', + "totalItems": 1, + 'items': [{ + 'type': 'Bookmark', + 'actor': actor + }] + } + postJsonObject['object']['bookmarks']=bookmarksJson else: if not postJsonObject['object']['bookmarks'].get('items'): postJsonObject['object']['bookmarks']['items']=[]