Grab comments on manually submitted links

This commit is contained in:
2019-12-02 23:15:51 +00:00
parent ebcbf1b624
commit 2d80b19414
3 changed files with 36 additions and 13 deletions

View File

@@ -89,7 +89,7 @@ def get_first_image(text):
except:
return ''
def update_story(story):
def update_story(story, manual=False):
res = {}
logging.info('Updating story ' + str(story['ref']))
@@ -109,7 +109,7 @@ def update_story(story):
logging.info('Article not ready yet')
return False
if story['date'] and story['date'] + TWO_DAYS < time.time():
if story['date'] and not manual and story['date'] + TWO_DAYS < time.time():
logging.info('Article too old, removing')
return False