Skip to content

Commit

Permalink
[export] Add QPS to links
Browse files Browse the repository at this point in the history
  • Loading branch information
angelayi committed Jan 28, 2025
1 parent 0740f6f commit c338cab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ pub fn parse_path(path: &PathBuf, config: ParseConfig) -> anyhow::Result<ParseOu
num_failures: num_failures,
success: num_failures == 0,
exported_program_url: exported_program_url.unwrap_or("".to_string()),
qps: TEMPLATE_QUERY_PARAM_SCRIPT,
};

output.push((
Expand Down
1 change: 1 addition & 0 deletions src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ you may address them.
{{ endif }}
Here is the resulting exported program: <a href="{exported_program_url}">link</a>.
{qps | format_unescaped}
</body>
</html>
"#;
Expand Down
1 change: 1 addition & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ pub struct ExportIndexContext {
pub num_failures: usize,
pub success: bool,
pub exported_program_url: String,
pub qps: &'static str,
}

#[derive(Debug, Serialize)]
Expand Down

0 comments on commit c338cab

Please sign in to comment.