diff --git a/src/unitgrade/utils.py b/src/unitgrade/utils.py index bdc8645b341bc58d9a3cfcf3699233d75c33fe5f..75a7e1097b4c5e209ed1407706dadba17ea11886 100644 --- a/src/unitgrade/utils.py +++ b/src/unitgrade/utils.py @@ -339,6 +339,7 @@ def checkout_remote_results(remote_url, manifest): mf = [m.strip().split(" ")[-1] for m in manifest.strip().splitlines()] a = 23 html = None + url = None for hash in reversed(mf): if hash_string(hash) in remote: url = f"{remote_url}/{os.path.dirname( remote[hash_string(hash)] )}/{hash}/index.html" @@ -356,7 +357,7 @@ def checkout_remote_results(remote_url, manifest): # print( df.to_string(index=False) ) # df.as - result = dict(html=html, df=df, score=float( df.iloc[2].to_list()[-1] )) + result = dict(html=html, df=df, score=float( df.iloc[2].to_list()[-1] ), url=url) else: result=dict(html=html)