Commit 513d2459 authored by Jan Kiene's avatar Jan Kiene
Browse files

ensure suffix is kept when renaming files

parent beb5cb35
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -122,8 +122,9 @@ def get_artifacts_for_jobs_and_return_num_failed(
                        # this is only needed until the new naming of the csv files is on main
                        print(artifact)
                        if project_id == PROJECT_ID_BASOP_REPO:
                            name_with_id = artifact.stem + f"-id_{job_id}.csv"
                            tmp_dir.joinpath(artifact).rename(
                                PUBLIC_FOLDER.joinpath(artifact.name + f"-id_{job_id}")
                                PUBLIC_FOLDER.joinpath(name_with_id)
                            )
                        else:
                            tmp_dir.joinpath(artifact).rename(