Update app.py
Browse files
app.py
CHANGED
|
@@ -125,13 +125,13 @@ def fetch_data(mode, req_type, name, date_str):
|
|
| 125 |
elif req_type == "nse_most_active":
|
| 126 |
return nsepython.nse_most_active().to_html()
|
| 127 |
elif req_type == "index_history":
|
| 128 |
-
return nsepython.index_history("NIFTY
|
| 129 |
elif req_type == "largedeals_historical":
|
| 130 |
return nsepython.nse_largedeals_historical(from_date, to_date).to_html()
|
| 131 |
elif req_type == "index_pe_pb_div":
|
| 132 |
-
return nsepython.index_pe_pb_div("NIFTY
|
| 133 |
elif req_type == "index_total_returns":
|
| 134 |
-
return nsepython.index_total_returns("NIFTY
|
| 135 |
else:
|
| 136 |
return common.wrap(f"<h3>No handler for {req_type}</h3>")
|
| 137 |
|
|
|
|
| 125 |
elif req_type == "nse_most_active":
|
| 126 |
return nsepython.nse_most_active().to_html()
|
| 127 |
elif req_type == "index_history":
|
| 128 |
+
return nsepython.index_history("NIFTY", from_date, to_date).to_html()
|
| 129 |
elif req_type == "largedeals_historical":
|
| 130 |
return nsepython.nse_largedeals_historical(from_date, to_date).to_html()
|
| 131 |
elif req_type == "index_pe_pb_div":
|
| 132 |
+
return nsepython.index_pe_pb_div("NIFTY", from_date, to_date).to_html()
|
| 133 |
elif req_type == "index_total_returns":
|
| 134 |
+
return nsepython.index_total_returns("NIFTY", from_date, to_date).to_html()
|
| 135 |
else:
|
| 136 |
return common.wrap(f"<h3>No handler for {req_type}</h3>")
|
| 137 |
|