YaakovY commited on
Commit
9a883e0
1 Parent(s): 75ee7e0
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -122,5 +122,5 @@ def get_stock_data(ticker):
122
  @app.get("/ticker/{ticker}")
123
  def read_item(ticker: str):
124
  stock_data = get_stock_data(ticker)
125
- result = stock_data.to_json(orient="columns")
126
  return result
 
122
  @app.get("/ticker/{ticker}")
123
  def read_item(ticker: str):
124
  stock_data = get_stock_data(ticker)
125
+ result = stock_data.to_json(orient="records")
126
  return result