Spaces:
Running
Running
Fix style
Browse files- clients.py +2 -1
clients.py
CHANGED
@@ -370,7 +370,7 @@ def fetch_analytics_data(host, start_date=None, end_date=None):
|
|
370 |
response = requests.get(endpoint)
|
371 |
|
372 |
if response.status_code != 200:
|
373 |
-
st.error(f"Failed to fetch analytics data from {host}")
|
374 |
return pd.DataFrame()
|
375 |
|
376 |
data = response.json()
|
@@ -416,6 +416,7 @@ def display_analytics():
|
|
416 |
hook_host = os.getenv("hook_host")
|
417 |
|
418 |
# Time filter inputs
|
|
|
419 |
start_date = st.date_input("Start Date", value=pd.to_datetime("2024-10-01"))
|
420 |
end_date = st.date_input("End Date", value=pd.to_datetime("today"))
|
421 |
|
|
|
370 |
response = requests.get(endpoint)
|
371 |
|
372 |
if response.status_code != 200:
|
373 |
+
#st.error(f"Failed to fetch analytics data from {host}")
|
374 |
return pd.DataFrame()
|
375 |
|
376 |
data = response.json()
|
|
|
416 |
hook_host = os.getenv("hook_host")
|
417 |
|
418 |
# Time filter inputs
|
419 |
+
st.html('<h1 class="title">Analytics</h1>')
|
420 |
start_date = st.date_input("Start Date", value=pd.to_datetime("2024-10-01"))
|
421 |
end_date = st.date_input("End Date", value=pd.to_datetime("today"))
|
422 |
|