eshan6704 commited on
Commit
27aed0a
·
verified ·
1 Parent(s): 1ded4f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ STOCK_REQ = [
35
  ]
36
 
37
  INDEX_REQ = [
38
- "nse_indices", "nse_open", "nse_preopen", "nse_fno",
39
  "nse_future", "nse_bhav", "nse_highlow"
40
  ]
41
 
@@ -66,7 +66,7 @@ def fetch_data(mode, req_type, symbol, date_str):
66
  date_str = date_str.strip()
67
 
68
  if mode == "index":
69
- if req_type == "nse_indices":
70
  return build_indices_html()
71
  elif req_type == "nse_open":
72
  return wrap(nse_open(symbol))
 
35
  ]
36
 
37
  INDEX_REQ = [
38
+ "indices", "nse_open", "nse_preopen", "nse_fno",
39
  "nse_future", "nse_bhav", "nse_highlow"
40
  ]
41
 
 
66
  date_str = date_str.strip()
67
 
68
  if mode == "index":
69
+ if req_type == "indices":
70
  return build_indices_html()
71
  elif req_type == "nse_open":
72
  return wrap(nse_open(symbol))