From: Claromes Date: Sun, 19 May 2024 17:35:48 +0000 (-0300) Subject: formatting to checking the health of the Streamlit app X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=1114afe4cda054fca82421f799e23a609c2e2f97;p=waybacktweets.git formatting to checking the health of the Streamlit app --- diff --git a/app.py b/app.py index 0c2f973..f366ee4 100644 --- a/app.py +++ b/app.py @@ -8,13 +8,12 @@ from urllib.parse import unquote year = datetime.datetime.now().year -st.set_page_config( - page_title='Wayback Tweets', - page_icon='🏛️', - layout='centered', - menu_items={ - - 'About': ''' +st.set_page_config(page_title='Wayback Tweets', + page_icon='🏛️', + layout='centered', + menu_items={ + 'About': + ''' ## 🏛️ Wayback Tweets [![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/claromes/waybacktweets?include_prereleases)](https://github.com/claromes/waybacktweets/releases) [![License](https://img.shields.io/github/license/claromes/waybacktweets)](https://github.com/claromes/waybacktweets/blob/main/LICENSE.md) @@ -25,9 +24,9 @@ st.set_page_config( ------- ''', - 'Report a bug': 'https://github.com/claromes/waybacktweets/issues' - } -) + 'Report a bug': + 'https://github.com/claromes/waybacktweets/issues' + }) # https://discuss.streamlit.io/t/remove-hide-running-man-animation-on-top-of-page/21773/3 hide_streamlit_style = ''' @@ -74,6 +73,7 @@ if 'saved_at' not in st.session_state: if 'count' not in st.session_state: st.session_state.count = False + def scroll_into_view(): js = f'''