diff options
author | Zach White <skullydazed@gmail.com> | 2020-12-19 10:46:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 19:46:30 +0100 |
commit | 624cafbfd2199fdf9fb0e834d7e9f1df70221336 (patch) | |
tree | 34d05e2a8937bc509d2ce1e455ab1eed604c1622 /lib/python/qmk/cli | |
parent | 5619b1d3db335750bed394b0d27980d67f4f50c5 (diff) | |
download | qmk_firmware-624cafbfd2199fdf9fb0e834d7e9f1df70221336.tar.gz qmk_firmware-624cafbfd2199fdf9fb0e834d7e9f1df70221336.zip |
Change keyboard json format to bring it inline with the current api (#11231)
Diffstat (limited to 'lib/python/qmk/cli')
-rwxr-xr-x | lib/python/qmk/cli/generate/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/api.py b/lib/python/qmk/cli/generate/api.py index 9807a9cd68..66db37cb52 100755 --- a/lib/python/qmk/cli/generate/api.py +++ b/lib/python/qmk/cli/generate/api.py @@ -36,7 +36,7 @@ def generate_api(cli): keyboard_readme_src = Path('keyboards') / keyboard_name / 'readme.md' keyboard_dir.mkdir(parents=True, exist_ok=True) - keyboard_info.write_text(json.dumps(kb_all['keyboards'][keyboard_name])) + keyboard_info.write_text(json.dumps({'last_updated': current_datetime(), 'keyboards': {keyboard_name: kb_all['keyboards'][keyboard_name]}})) if keyboard_readme_src.exists(): copyfile(keyboard_readme_src, keyboard_readme) |