From 098eb53e391d96229e5582fa6dbc174251a8ce58 Mon Sep 17 00:00:00 2001 From: Chloe Carver-Brown Date: Thu, 26 May 2022 19:02:19 +0100 Subject: [PATCH] forgot the double bracket Signed-off-by: Chloe Carver-Brown --- twitfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index edc63f0..0b90489 100644 --- a/twitfix.py +++ b/twitfix.py @@ -336,7 +336,7 @@ def twitfix(sub_path): ) elif ( - request.url.endswith("/1", "/2", "/3", "/4", "%2F1", "%2F2", "%2F3", "%2F4") + request.url.endswith(("/1", "/2", "/3", "/4", "%2F1", "%2F2", "%2F3", "%2F4")) ): twitter_url = "https://twitter.com/" + sub_path