From abf7f0a802b8d30a5dfcba879490a603bee867fc Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Fri, 20 Nov 2020 12:21:27 +1300 Subject: [PATCH] force reader update in update-story.py --- apiserver/update-story.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiserver/update-story.py b/apiserver/update-story.py index 68a8dfa..97649fe 100644 --- a/apiserver/update-story.py +++ b/apiserver/update-story.py @@ -17,6 +17,9 @@ search.init() def _update_current_story(story, item): logging.info('Updating story: {}'.format(str(story['ref']))) + if story.get('url', ''): + story['text'] = '' + valid = feed.update_story(story, urlref=item['urlref']) if valid: database.put_story(story)