Merge pull request 'Remove slash from the end of URL' (#8) from NoPlagiarism/gothub-instances:remove_slash into master

Reviewed-on: https://codeberg.org/gothub/gothub-instances/pulls/8
This commit is contained in:
Arya K
2023-07-15 15:19:12 +00:00
+1 -1
View File
@@ -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]