mtoft20 commited on
Commit
c3b9192
·
verified ·
1 Parent(s): 6386298

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -2
src/streamlit_app.py CHANGED
@@ -49,11 +49,14 @@ def get_netflix_content():
49
  st.error("NocoDB credentials not configured. Please set up your secrets.")
50
  return []
51
 
52
- headers = {"xc-token": api_token}
 
 
 
53
 
54
  try:
55
  response = requests.get(
56
- f"{NOCODB_URL}{endpoint_path}?limit=10000",
57
  headers=headers
58
  )
59
 
 
49
  st.error("NocoDB credentials not configured. Please set up your secrets.")
50
  return []
51
 
52
+ headers = {
53
+ "xc-auth": api_token,
54
+ "accept": "application/json"
55
+ }
56
 
57
  try:
58
  response = requests.get(
59
+ f"{NOCODB_URL}/api/v1/db/data/noco/pt374k79jaxk7jr/Netflix/views/Netflix?limit=10000",
60
  headers=headers
61
  )
62