princelv commited on
Commit
66cb56d
·
verified ·
1 Parent(s): e8ab23a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -18,7 +18,7 @@ DATA_FILE = os.path.join(os.path.dirname(__file__), "data", "DTE_all_Batch.xlsx"
18
  GMAP_KEY = os.getenv("GOOGLE_MAPS_API_KEY", "")
19
 
20
 
21
- # ── Coordinates & Normalisation Maps ──────────────────────────────────────────
22
 
23
  DISTRICT_COORDS = {
24
  "Amritsar": (31.6340, 74.8723),
@@ -106,7 +106,7 @@ COLLEGE_COORDS = {
106
  }
107
 
108
 
109
- # ── Data Loading ──────────────────────────────────────────────────────────────
110
 
111
  def load_data() -> pd.DataFrame:
112
  raw = pd.read_excel(DATA_FILE, sheet_name=0, header=None)
@@ -168,7 +168,7 @@ def load_data() -> pd.DataFrame:
168
  return df
169
 
170
 
171
- # ── API Endpoints ─────────────────────────────────────────────────────────────
172
 
173
  @app.route("/api/dashboard-data")
174
  def dashboard_data():
@@ -316,7 +316,7 @@ def advanced_stats():
316
  })
317
 
318
 
319
- # ── Pages ──────────────────────────────────────────────────────────────────────
320
 
321
  @app.route("/")
322
  def index():
 
18
  GMAP_KEY = os.getenv("GOOGLE_MAPS_API_KEY", "")
19
 
20
 
21
+ # Coordinates & Normalisation Maps
22
 
23
  DISTRICT_COORDS = {
24
  "Amritsar": (31.6340, 74.8723),
 
106
  }
107
 
108
 
109
+ # Data Loading
110
 
111
  def load_data() -> pd.DataFrame:
112
  raw = pd.read_excel(DATA_FILE, sheet_name=0, header=None)
 
168
  return df
169
 
170
 
171
+ # API Endpoints
172
 
173
  @app.route("/api/dashboard-data")
174
  def dashboard_data():
 
316
  })
317
 
318
 
319
+ # Pages
320
 
321
  @app.route("/")
322
  def index():