From b0d85209eafb986d369311d7fc417e340aa7f1c9 Mon Sep 17 00:00:00 2001 From: Raisul Islam Date: Thu, 26 Sep 2024 13:43:50 +0600 Subject: [PATCH] Update app.py --- demo/app.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/demo/app.py b/demo/app.py index ed9cac8..d38e077 100644 --- a/demo/app.py +++ b/demo/app.py @@ -1,8 +1,8 @@ from flask import Flask, render_template from bdshare import get_basic_hist_data +import datetime import plotly - import json app = Flask(__name__) @@ -11,7 +11,10 @@ @app.route('/') def index(): - df = get_basic_hist_data('2022-03-01','2022-10-01','ACI') + # get current date + # start_date = datetime.date.now() - datetime.timedelta(days=2*365) + # current_date = datetime.date.today() + df = get_basic_hist_data('2022-10-01','2024-09-26','ACI') graphs = [ dict( @@ -58,4 +61,4 @@ def index(): if __name__ == '__main__': - app.run(host='0.0.0.0', port=9999) \ No newline at end of file + app.run(host='0.0.0.0', port=9999)