diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-27 10:27:32 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-27 12:53:41 +0100 |
commit | 472049655854be85acc4e2cd8fd920914d24ecd7 (patch) | |
tree | 5a7707c1f8259d4288ac3a65fd15281a50434a7e | |
parent | b711ec5656008b1a7cdb2122e0564576aebcb05a (diff) |
data: simplify data.json
-rwxr-xr-x | build.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -82,7 +82,11 @@ shutil.copy('style.css', 'target') shutil.copy('script.js', 'target') with open('target/data.json', 'w') as f: - json.dump(dict(unstable=unstable_features, versions=versions), f) + data = dict( + unstable = dict(features = unstable_features), + **versions + ) + json.dump(data, f) def write_features(f, id, features): |