Ignore if like notification has already sent

main
Bob Mottram 2021-03-09 15:11:10 +00:00
parent 28a6174e96
commit 5d4bbb453d
1 changed files with 2 additions and 0 deletions

View File

@ -459,6 +459,8 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str,
if os.path.isfile(likeFilename):
with open(likeFilename, 'r') as fp:
likedBy = fp.read()
if '##sent##' in likedBy:
likedBy = ''
return _speakerEndpointJson(speakerName, summary,
content, imageDescription,