From 38a78860b04d716af66654d60f5014ef5067fe06 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 5 Jan 2023 01:33:26 +0100 Subject: [PATCH] Fix procedura dopo codice debug. --- loaih/build.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index 6069c14..39ba440 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -125,9 +125,7 @@ class Build(loaih.RemoteBuild): path_arr = [ self.storage_path, '' ] path = str.join('/', path_arr) print(f"DEBUG - Name: {name}, URL: {path}") - matching = etree.HTML(urllib.request.urlopen( - str.join('/', path) - ).read()).xpath( + matching = etree.HTML(urllib.request.urlopen(path).read()).xpath( f"//a[contains(@href, '{name}')/@href" )