sarim commited on
Commit
a742a90
·
1 Parent(s): 3fd0268

bug fixes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -496,7 +496,7 @@ def get_all_currency():
496
  @app.get("/get_index_price/{index_name}")
497
  def get_index_price(index_name: str):
498
  r = requests.get(f"https://dps.psx.com.pk/timeseries/int/{index_name}")
499
- response = IndexPrice.model_validate_json(r.json())
500
 
501
  formatted_data = [
502
  DataIndex(
 
496
  @app.get("/get_index_price/{index_name}")
497
  def get_index_price(index_name: str):
498
  r = requests.get(f"https://dps.psx.com.pk/timeseries/int/{index_name}")
499
+ response = IndexPrice.model_validate(r.json())
500
 
501
  formatted_data = [
502
  DataIndex(