Commit 02607e8f authored by Christophe Benz's avatar Christophe Benz

Update key

parent 6b2432dc
...@@ -221,7 +221,7 @@ def compute_badge_message_and_color(badge): ...@@ -221,7 +221,7 @@ def compute_badge_message_and_color(badge):
return ('structure invalide', 'orange') if structure == 'WARN' else ('valide', 'green') return ('structure invalide', 'orange') if structure == 'WARN' else ('valide', 'green')
# else compute quality ratio percent # else compute quality ratio percent
p = (1 - badge['ratio']) * 100.0 p = (1 - badge['error-ratio']) * 100.0
msg = 'cellules valides : {:.1f}%'.format(p) msg = 'cellules valides : {:.1f}%'.format(p)
return (msg, 'red') if body == 'KO' else (msg, 'orange') return (msg, 'red') if body == 'KO' else (msg, 'orange')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment