Tomás F commited on
Commit
ae1f735
1 Parent(s): a143bbf

Fix published date formatting

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ for article, sentiment in filter_with_sentiment(classified_articles, target_sent
93
  st.markdown(
94
  f'''
95
  #### {article.title}
96
- Published on {strftime(article.published_parsed, '%H:%M %d/%m/%Y')}
97
  **Sentiment:** {sentiment.get('label').capitalize()}
98
  '''
99
  )
 
93
  st.markdown(
94
  f'''
95
  #### {article.title}
96
+ Published on {strftime('%H:%M %d/%m/%Y', article.published_parsed)}
97
  **Sentiment:** {sentiment.get('label').capitalize()}
98
  '''
99
  )