diff options
author | QMK Bot <hello@qmk.fm> | 2021-03-25 03:34:00 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-03-25 03:34:00 +0000 |
commit | 600fc8be2b7c9a427514681bb6ff1f8b0a5eb7f8 (patch) | |
tree | 47a45d4eb3889fbe9fb2c3f5efca96df86804425 /lib | |
parent | c823160d94733bf156d766c02a27be4b60f921a7 (diff) | |
parent | 54b80ecf9f7def99d45dc39bbcf29baf963b6372 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/python/qmk/cli/generate/api.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/python/qmk/cli/generate/api.py b/lib/python/qmk/cli/generate/api.py index 9870f7201d..2905908345 100755 --- a/lib/python/qmk/cli/generate/api.py +++ b/lib/python/qmk/cli/generate/api.py @@ -19,11 +19,11 @@ def generate_api(cli): """ api_data_dir = Path('api_data') v1_dir = api_data_dir / 'v1' - keyboard_all_file = v1_dir / 'keyboards.json' # A massive JSON containing everything - keyboard_list_file = v1_dir / 'keyboard_list.json' # A simple list of keyboard targets - keyboard_aliases_file = v1_dir / 'keyboard_aliases.json' # A list of historical keyboard names and their new name + keyboard_all_file = v1_dir / 'keyboards.json' # A massive JSON containing everything + keyboard_list_file = v1_dir / 'keyboard_list.json' # A simple list of keyboard targets + keyboard_aliases_file = v1_dir / 'keyboard_aliases.json' # A list of historical keyboard names and their new name keyboard_metadata_file = v1_dir / 'keyboard_metadata.json' # All the data configurator/via needs for initialization - usb_file = v1_dir / 'usb.json' # A mapping of USB VID/PID -> keyboard target + usb_file = v1_dir / 'usb.json' # A mapping of USB VID/PID -> keyboard target if not api_data_dir.exists(): api_data_dir.mkdir() @@ -71,6 +71,6 @@ def generate_api(cli): 'last_updated': current_datetime(), 'keyboards': keyboard_list, 'keyboard_aliases': keyboard_aliases, - 'usb': usb_list + 'usb': usb_list, } keyboard_metadata_file.write_text(json.dumps(keyboard_metadata, cls=InfoJSONEncoder)) |