Skip to content

Commit

Permalink
Omit unrestricted queries from the markdown table
Browse files Browse the repository at this point in the history
  • Loading branch information
kalikiana committed Mar 15, 2023
1 parent e98b189 commit bf3fcd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backlogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def render_table(data):
for conf in data["queries"]:
good, issue_count = check_backlog(conf)
url = data["web"] + "?" + conf["query"]
limits = "<" + str(conf["max"] + 1) if "max" in conf else ""
# Omit unrestricted queries from the table
if "max" not in conf:
continue
limits = "<" + str(conf["max"] + 1)
if "min" in conf:
limits += ", >" + str(conf["min"] - 1)
rows.append([
Expand Down

0 comments on commit bf3fcd6

Please sign in to comment.