Exemple #1
0
def article_from_row(row):
    if 'Archive link' not in row:
        return

    article_dict = {
        'scienceFeedbackId': row['airtableId'],
        'title': row['Claim checked (or Headline if no main claim)'],
        'url': 'http' + row['Archive link'].split('http')[1]
    }

    return Article.create_or_modify(article_dict, search_by=['scienceFeedbackId'])