From: Claromes Date: Tue, 26 Dec 2023 04:35:25 +0000 (-0300) Subject: delete status code check X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=1ceee8e33c078fc6f53443fe7b444498ebac3dbf;p=waybacktweets.git delete status code check --- diff --git a/app.py b/app.py index 29f9385..718c6eb 100644 --- a/app.py +++ b/app.py @@ -297,7 +297,7 @@ def display_not_tweet(): if mimetype[i] == 'text/html' or mimetype[i] == 'warc/revisit' or mimetype[i] == 'unk': if ('.jpg' in tweet_links[i] or '.png' in tweet_links[i]) and response_html.status_code == 200: components.iframe(tweet_links[i], height=500, scrolling=True) - elif '/status/' not in original_link or response_html.status_code != 200: + elif '/status/' not in original_link: st.info("This isn't a status or is not available") elif status or f'{st.session_state.current_handle}' not in original_link: st.info(f'Replying to {st.session_state.current_handle}')