sobinalosious92 commited on
Commit
2f064e2
·
verified ·
1 Parent(s): d7f52e5

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +1 -22
Home.py CHANGED
@@ -1,7 +1,5 @@
1
  import base64
2
- import os
3
  from pathlib import Path
4
- from urllib import request
5
 
6
  import streamlit as st
7
 
@@ -10,25 +8,6 @@ from src.ui_style import apply_global_style
10
  st.set_page_config(page_title="Home", layout="wide")
11
  apply_global_style()
12
 
13
-
14
- def _log_visit_event() -> None:
15
- webhook_url = os.getenv("FEEDBACK_WEBHOOK_URL", "").strip()
16
- webhook_token = os.getenv("FEEDBACK_WEBHOOK_TOKEN", "").strip()
17
- if not webhook_url:
18
- return
19
-
20
- endpoint = webhook_url
21
- sep = "&" if "?" in webhook_url else "?"
22
- endpoint = f"{webhook_url}{sep}event=visit"
23
- if webhook_token:
24
- endpoint = f"{endpoint}&token={webhook_token}"
25
- try:
26
- with request.urlopen(endpoint, timeout=12):
27
- pass
28
- except Exception:
29
- pass
30
- _log_visit_event()
31
-
32
  logo_path = Path(__file__).resolve().parent / "icons" / "logo.png"
33
  logo_data_uri = ""
34
  if logo_path.exists():
@@ -108,7 +87,7 @@ cards = [
108
  ),
109
  (
110
  "Feedback",
111
- "Send bug reports, feature requests, and usage feedback that is stored in Google Sheets for review.",
112
  "pages/7_Feedback.py",
113
  ),
114
  ]
 
1
  import base64
 
2
  from pathlib import Path
 
3
 
4
  import streamlit as st
5
 
 
8
  st.set_page_config(page_title="Home", layout="wide")
9
  apply_global_style()
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  logo_path = Path(__file__).resolve().parent / "icons" / "logo.png"
12
  logo_data_uri = ""
13
  if logo_path.exists():
 
87
  ),
88
  (
89
  "Feedback",
90
+ "Send bug reports, feature requests, and usage feedback.",
91
  "pages/7_Feedback.py",
92
  ),
93
  ]