박은주

Add Schedule

Showing 1 changed file with 3 additions and 1 deletions
import schedule
from flask import Flask, render_template
from SentimentAnalyzer import StartSentimentAnalysis
......@@ -7,7 +9,7 @@ app = Flask(__name__)
@app.route('/')
def main():
GetData()
schedule.every().day.at("08:00").do(GetData())
tot, positive, neutral, negative = StartSentimentAnalysis()
return render_template('index.html', data = {
'total' : tot,
......