mirror of https://gitlab.com/bashrc2/epicyon
More distinctive function name
parent
d571088c2d
commit
78c06df1c6
|
@ -379,7 +379,7 @@ def getRSSfromDict(baseDir: str, newswire: {},
|
||||||
return rssStr
|
return rssStr
|
||||||
|
|
||||||
|
|
||||||
def isaBlogPost(postJsonObject: {}) -> bool:
|
def isNewswireBlogPost(postJsonObject: {}) -> bool:
|
||||||
"""Is the given object a blog post?
|
"""Is the given object a blog post?
|
||||||
"""
|
"""
|
||||||
if not postJsonObject:
|
if not postJsonObject:
|
||||||
|
@ -471,7 +471,7 @@ def addAccountBlogsToNewswire(baseDir: str, nickname: str, domain: str,
|
||||||
postJsonObject = None
|
postJsonObject = None
|
||||||
if fullPostFilename:
|
if fullPostFilename:
|
||||||
postJsonObject = loadJson(fullPostFilename)
|
postJsonObject = loadJson(fullPostFilename)
|
||||||
if isaBlogPost(postJsonObject):
|
if isNewswireBlogPost(postJsonObject):
|
||||||
published = postJsonObject['object']['published']
|
published = postJsonObject['object']['published']
|
||||||
published = published.replace('T', ' ')
|
published = published.replace('T', ' ')
|
||||||
published = published.replace('Z', '+00:00')
|
published = published.replace('Z', '+00:00')
|
||||||
|
|
Loading…
Reference in New Issue