Showing
1 changed file
with
3 additions
and
1 deletions
1 | +import schedule | ||
2 | + | ||
1 | from flask import Flask, render_template | 3 | from flask import Flask, render_template |
2 | 4 | ||
3 | from SentimentAnalyzer import StartSentimentAnalysis | 5 | from SentimentAnalyzer import StartSentimentAnalysis |
... | @@ -7,7 +9,7 @@ app = Flask(__name__) | ... | @@ -7,7 +9,7 @@ app = Flask(__name__) |
7 | 9 | ||
8 | @app.route('/') | 10 | @app.route('/') |
9 | def main(): | 11 | def main(): |
10 | - GetData() | 12 | + schedule.every().day.at("08:00").do(GetData()) |
11 | tot, positive, neutral, negative = StartSentimentAnalysis() | 13 | tot, positive, neutral, negative = StartSentimentAnalysis() |
12 | return render_template('index.html', data = { | 14 | return render_template('index.html', data = { |
13 | 'total' : tot, | 15 | 'total' : tot, | ... | ... |
-
Please register or login to post a comment