Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rochi88 authored Sep 26, 2024
1 parent 1acf5c1 commit b0d8520
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions demo/app.py
Original file line number Diff line number Diff line change
@@ -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__)
Expand All @@ -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(
Expand Down Expand Up @@ -58,4 +61,4 @@ def index():


if __name__ == '__main__':
app.run(host='0.0.0.0', port=9999)
app.run(host='0.0.0.0', port=9999)

0 comments on commit b0d8520

Please sign in to comment.