Fix formatting
This commit is contained in:
parent
d68783ddda
commit
45eb439030
@ -6,8 +6,8 @@ from datetime import date
|
|||||||
from news import scrape_news
|
from news import scrape_news
|
||||||
|
|
||||||
def update_news_data():
|
def update_news_data():
|
||||||
news_data = scrape_news(date.today())
|
news_data = scrape_news(date.today())
|
||||||
insert(news_data)
|
insert(news_data)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
schedule.every().day.at('02:00', 'America/Los_Angeles').do(update_news_data)
|
schedule.every().day.at('02:00', 'America/Los_Angeles').do(update_news_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user