mirror of https://gitlab.com/bashrc2/epicyon
Ignore if like notification has already sent
parent
28a6174e96
commit
5d4bbb453d
|
@ -459,6 +459,8 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str,
|
||||||
if os.path.isfile(likeFilename):
|
if os.path.isfile(likeFilename):
|
||||||
with open(likeFilename, 'r') as fp:
|
with open(likeFilename, 'r') as fp:
|
||||||
likedBy = fp.read()
|
likedBy = fp.read()
|
||||||
|
if '##sent##' in likedBy:
|
||||||
|
likedBy = ''
|
||||||
|
|
||||||
return _speakerEndpointJson(speakerName, summary,
|
return _speakerEndpointJson(speakerName, summary,
|
||||||
content, imageDescription,
|
content, imageDescription,
|
||||||
|
|
Loading…
Reference in New Issue