Add1E commited on
Commit
1eb46b7
·
verified ·
1 Parent(s): aaf4950

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -112,6 +112,8 @@ def display_trends_from_yesterday():
112
  full_url = f"{base_url}{query_params}"
113
  st.link_button("Open All Links" , url= full_url)
114
  count += 1
 
 
115
 
116
 
117
  def display_articles_for_category(category):
@@ -146,6 +148,9 @@ def display_articles_for_category(category):
146
  query_params = "&".join([f"article-links[]={url}" for url in urls])
147
  full_url = f"{base_url}{query_params}"
148
  st.link_button("Open All Links" , url= full_url)
 
 
 
149
 
150
 
151
  # Funktion zum Rendern von Artikeln für heute
@@ -179,6 +184,9 @@ def display_articles_for_today(count, index):
179
  query_params = "&".join([f"article-links[]={url}" for url in urls])
180
  full_url = f"{base_url}{query_params}"
181
  st.link_button("Open All Links" , url= full_url)
 
 
 
182
 
183
 
184
  categories = {
 
112
  full_url = f"{base_url}{query_params}"
113
  st.link_button("Open All Links" , url= full_url)
114
  count += 1
115
+ st.session_state["reset"] = True
116
+ st.rerun()
117
 
118
 
119
  def display_articles_for_category(category):
 
148
  query_params = "&".join([f"article-links[]={url}" for url in urls])
149
  full_url = f"{base_url}{query_params}"
150
  st.link_button("Open All Links" , url= full_url)
151
+ st.session_state["reset"] = True
152
+ st.rerun()
153
+
154
 
155
 
156
  # Funktion zum Rendern von Artikeln für heute
 
184
  query_params = "&".join([f"article-links[]={url}" for url in urls])
185
  full_url = f"{base_url}{query_params}"
186
  st.link_button("Open All Links" , url= full_url)
187
+ st.session_state["reset"] = True
188
+ st.rerun()
189
+
190
 
191
 
192
  categories = {