Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoCeratto committed Oct 10, 2023
1 parent a413ca8 commit 6425550
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions api/ooniapi/prio.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,17 +357,13 @@ def debug_prioritization() -> Response:
test_items, entries, prio_rules = generate_test_list(
country_code, category_codes, asn, limit, True
)
d = dict(test_items=test_items, entries=entries, prio_rules=prio_rules)
if fmt == "JSON":
out = cachedjson(
"0s", test_items=test_items, entries=entries, prio_rules=prio_rules
)
out = cachedjson("0s", **d)
else:
out = render_template(
"debug_prio.html",
test_items=test_items,
entries=entries,
prio_rules=prio_rules,
)
html = render_template("debug_prio.html", **d)
out = make_response(html)

return out


Expand Down

0 comments on commit 6425550

Please sign in to comment.