From 78c06df1c6e25b46d8512e6e64fd75ada4849534 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Oct 2020 10:45:42 +0000 Subject: [PATCH] More distinctive function name --- newswire.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newswire.py b/newswire.py index a604c6cd2..5c126fdfe 100644 --- a/newswire.py +++ b/newswire.py @@ -379,7 +379,7 @@ def getRSSfromDict(baseDir: str, newswire: {}, return rssStr -def isaBlogPost(postJsonObject: {}) -> bool: +def isNewswireBlogPost(postJsonObject: {}) -> bool: """Is the given object a blog post? """ if not postJsonObject: @@ -471,7 +471,7 @@ def addAccountBlogsToNewswire(baseDir: str, nickname: str, domain: str, postJsonObject = None if fullPostFilename: postJsonObject = loadJson(fullPostFilename) - if isaBlogPost(postJsonObject): + if isNewswireBlogPost(postJsonObject): published = postJsonObject['object']['published'] published = published.replace('T', ' ') published = published.replace('Z', '+00:00')