Spaces:
Runtime error
Runtime error
Update pages/6_π_Callcenter_dashboard.py
Browse files
pages/6_π_Callcenter_dashboard.py
CHANGED
|
@@ -42,10 +42,10 @@ with st.sidebar:
|
|
| 42 |
# --- Cached data fetch ---
|
| 43 |
@st.cache_data(show_spinner=False)
|
| 44 |
def fetch_customers(limit):
|
| 45 |
-
API_DATA_URL = "https://dun3co-sdc-nocodb.hf.space/api/v2/tables/
|
| 46 |
API_DATA_TOKEN = st.secrets["NOCODB_TOKEN"]
|
| 47 |
HEADERS = {"xc-token": API_DATA_TOKEN}
|
| 48 |
-
params = {"offset": 0, "limit": limit, "viewId": "
|
| 49 |
res = requests.get(API_DATA_URL, headers=HEADERS, params=params)
|
| 50 |
res.raise_for_status()
|
| 51 |
return res.json()["list"]
|
|
|
|
| 42 |
# --- Cached data fetch ---
|
| 43 |
@st.cache_data(show_spinner=False)
|
| 44 |
def fetch_customers(limit):
|
| 45 |
+
API_DATA_URL = "https://dun3co-sdc-nocodb.hf.space/api/v2/tables/mjr0gbwqvf5rb8v/records"
|
| 46 |
API_DATA_TOKEN = st.secrets["NOCODB_TOKEN"]
|
| 47 |
HEADERS = {"xc-token": API_DATA_TOKEN}
|
| 48 |
+
params = {"offset": 0, "limit": limit, "viewId": "vw46gqjru8ul4h6v"}
|
| 49 |
res = requests.get(API_DATA_URL, headers=HEADERS, params=params)
|
| 50 |
res.raise_for_status()
|
| 51 |
return res.json()["list"]
|