diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 02:23:18 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 19:58:25 +0200 |
commit | e591c3147e3c504611ff612e8918018125ffa2eb (patch) | |
tree | d4004f33ddc2c7f9f70d95d0244b93ac27b9eb76 /branding/scripts | |
parent | c2871f4aece61b939e0e6c8d7a94677fb055620a (diff) |
[bug] pass json as bytes to go side
Diffstat (limited to 'branding/scripts')
-rw-r--r-- | branding/scripts/gen-providers-json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/branding/scripts/gen-providers-json.py b/branding/scripts/gen-providers-json.py index b57965b..8e1c10b 100644 --- a/branding/scripts/gen-providers-json.py +++ b/branding/scripts/gen-providers-json.py @@ -23,10 +23,11 @@ def generateProvidersJSON(configPath, outputJSONPath): providers = {} defaultProvider = getDefaultProvider(config) providers['default'] = defaultProvider + providers['providers'] = [] providerData = getProviderData(defaultProvider, config) addCaData(providerData, configPath) - providers[defaultProvider] = providerData + providers['providers'].append(providerData) with open(outputJSONPath, 'w', encoding='utf-8') as f: json.dump(providers, f, ensure_ascii=False, indent=4) |