Skip to content

Commit

Permalink
Add extra columns to return value
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Jan 16, 2025
1 parent c12f64f commit 409571e
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,30 @@ async def get_aggregation_analysis(
log.info(f"running query {q} with {q_args}")
rows = db.execute(q, q_args)

fixed_cols = ["probe_analysis", "all_outcomes", "outcome_label", "outcome_value"]
fixed_cols = [
"probe_analysis",
"count",
"dns_isp_blocked",
"dns_isp_down",
"dns_isp_ok",
"dns_other_blocked",
"dns_other_down",
"dns_other_ok",
"tls_blocked",
"tls_down",
"tls_ok",
"tcp_blocked",
"tcp_down",
"tcp_ok",
"dns_isp_outcome",
"dns_other_outcome",
"tcp_outcome",
"tls_outcome",
"most_likely_ok",
"most_likely_down",
"most_likely_blocked",
"most_likely_label",
]

results: List[AggregationEntry] = []
if rows and isinstance(rows, list):
Expand Down

0 comments on commit 409571e

Please sign in to comment.