Add1E commited on
Commit
966cb75
·
verified ·
1 Parent(s): 10d9f39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -110,8 +110,12 @@ def display_trends_from_yesterday():
110
  base_url = os.getenv("url")
111
  query_params = "&".join([f"article-links[]={url}" for url in urls])
112
  full_url = f"{base_url}{query_params}"
113
- st.link_button("Open All Links" , url= full_url)
 
 
 
114
  count += 1
 
115
 
116
  def display_articles_for_category(category):
117
  checkbox_statuses = {}
@@ -144,7 +148,10 @@ def display_articles_for_category(category):
144
  base_url = os.getenv("url")
145
  query_params = "&".join([f"article-links[]={url}" for url in urls])
146
  full_url = f"{base_url}{query_params}"
147
- st.link_button("Open All Links" , url= full_url)
 
 
 
148
 
149
 
150
  # Funktion zum Rendern von Artikeln für heute
@@ -177,7 +184,11 @@ def display_articles_for_today(count, index):
177
  base_url = os.getenv("url")
178
  query_params = "&".join([f"article-links[]={url}" for url in urls])
179
  full_url = f"{base_url}{query_params}"
180
- st.link_button("Open All Links" , url= full_url)
 
 
 
 
181
 
182
  categories = {
183
  "Alle": "all",
 
110
  base_url = os.getenv("url")
111
  query_params = "&".join([f"article-links[]={url}" for url in urls])
112
  full_url = f"{base_url}{query_params}"
113
+ if st.link_button("Open All Links" , url= full_url):
114
+ time.sleep(2.5)
115
+ st.session_state["reset"] = True
116
+ st.rerun()
117
  count += 1
118
+
119
 
120
  def display_articles_for_category(category):
121
  checkbox_statuses = {}
 
148
  base_url = os.getenv("url")
149
  query_params = "&".join([f"article-links[]={url}" for url in urls])
150
  full_url = f"{base_url}{query_params}"
151
+ if st.link_button("Open All Links" , url= full_url):
152
+ time.sleep(2.5)
153
+ st.session_state["reset"] = True
154
+ st.rerun()
155
 
156
 
157
  # Funktion zum Rendern von Artikeln für heute
 
184
  base_url = os.getenv("url")
185
  query_params = "&".join([f"article-links[]={url}" for url in urls])
186
  full_url = f"{base_url}{query_params}"
187
+ if st.link_button("Open All Links" , url= full_url):
188
+ time.sleep(2.5)
189
+ st.session_state["reset"] = True
190
+ st.rerun()
191
+
192
 
193
  categories = {
194
  "Alle": "all",