Skip to content

Commit

Permalink
Not underline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardorax committed Mar 24, 2022
1 parent 2ea987a commit 7c3cc26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from json import JSONDecoder, load

def send_webhooks(Checker, url, color: int, file_path: str, desc: str,coverage, name: str = "Normeur"):

# Embed fiels
fields = [
{"name": "MAJOR", "value": Checker["major"], "inline": True},
Expand All @@ -15,12 +14,12 @@ def send_webhooks(Checker, url, color: int, file_path: str, desc: str,coverage,
if coverage != None:
fields.append({
"name": "Line Coverage",
"value": "__" + str(coverage["line_percent"]) + "%__\n" + str(coverage["line_covered"]) + " / " + str(coverage["line_total"]),
"value": str(coverage["line_percent"]) + "%\n" + str(coverage["line_covered"]) + " / " + str(coverage["line_total"]),
"inline": True
})
fields.append({
"name": "Branch Coverage",
"value": "__" + str(coverage["branch_percent"]) + "%__\n" + str(coverage["branch_covered"]) + " / " + str(coverage["branch_total"]),
"value": str(coverage["branch_percent"]) + "%\n" + str(coverage["branch_covered"]) + " / " + str(coverage["branch_total"]),
"inline": False
})

Expand Down

0 comments on commit 7c3cc26

Please sign in to comment.