summaryrefslogtreecommitdiffstats
path: root/third_party/rust/jsparagus/.metrics/not_implemented_badge.py
blob: bc522f1fe31931505121b7d59f66038dac73dcf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python
import json
import os.path

filename = 'badges/not-implemented.json'
total_count = os.environ['total_count']
data = {
    "schemaVersion": 1,
    "label": "NotImplemented",
    "message": total_count,
    "color": "green" if total_count == "0" else "yellow",
}
with open(filename, 'w') as f:
    json.dump(data, f, indent=4)