Skip to content

Commit

Permalink
Make module output archive filename nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 31, 2024
1 parent c69f525 commit 7a33068
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/browse/OutputReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ export const OutputReport = ({
</>
)}
<a
target="_blank"
rel="noreferrer"
title="Archive of module output"
href={`${prefix}jobs/${jobid}/archive/${module.output.path}`}
>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/jobs.$id.archive.$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
const id = jobIdFromParams(params);
const path = params["*"] || "";
const token = await getBartenderToken(request);
const filename = `haddock3-output-${id}-${path.replace(/\//g, "-")}.zip`;
const filename = `haddock3-${id}-${path.replace(/\//g, "-")}.zip`;
return await getSubDirectoryAsArchive(id, path, token, filename);
};

0 comments on commit 7a33068

Please sign in to comment.