From a9fca270ab2a69c969a9d22da72b2dfc65b4fc78 Mon Sep 17 00:00:00 2001 From: NoPlagiarism Date: Sat, 15 Jul 2023 15:32:49 +0500 Subject: [PATCH] Remove slash from the end of URL --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d4fea2e..619b740 100644 --- a/main.py +++ b/main.py @@ -31,7 +31,7 @@ session.mount('http://', http_adapter) # Just to be sure def from_tuple_to_instance_json(data: tuple) -> dict: # data in the same order, as in regex res = { 'country': data[3], - 'link': data[1], + 'link': data[1].rstrip("/"), 'cloudflare': data[2] == 'Yes', 'host': data[4], 'branch': data[5]