Update JSON config file if it lacks keys

This commit is contained in:
miruka 2019-08-16 15:12:14 -04:00
parent be18a5db41
commit e920299db4

View File

@ -65,6 +65,10 @@ class JSONConfigFile(ConfigFile):
all_data = await self.default_data() all_data = await self.default_data()
dict_update_recursive(all_data, data) dict_update_recursive(all_data, data)
if len(data) != len(all_data):
await self.write(all_data)
return all_data return all_data