Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def fetch_data(mode, req_type, name, date_str):
|
|
| 125 |
elif req_type == "other":
|
| 126 |
return common.wrap(stock.fetch_other(name))
|
| 127 |
elif req_type == "stock_hist":
|
| 128 |
-
return
|
| 129 |
else:
|
| 130 |
return common.wrap(f"<h3>No handler for {req_type}</h3>")
|
| 131 |
|
|
|
|
| 125 |
elif req_type == "other":
|
| 126 |
return common.wrap(stock.fetch_other(name))
|
| 127 |
elif req_type == "stock_hist":
|
| 128 |
+
return nsepython.nse_stock_hist(from_date, to_date, name).to_html()
|
| 129 |
else:
|
| 130 |
return common.wrap(f"<h3>No handler for {req_type}</h3>")
|
| 131 |
|