def _load_config(file):
with open(file, 'r') as f:
configs = json.load(f)
for config in configs:
if 'z' in config:
for file in config['zips']:
file['asOfDay'] = cob
if 'f' in config:
config['facts']['asOfDay'] = cob
if 'd' in config:
for file in config['dicts']:
file['asOfDay'] = cob
return configs
[
{
"d": [
{
"asOfDay": "2021-11-04",
"cloud": "party.csv",
"contentType": "CSV",
"dir": "/data",
"table": "party"
}
]
},
{
"f": {
"asOfDay": "2021-11-04",
"cloud": [
"sensi.csv"
],
"contentType": "CSV",
"dir": "/data",
"table": "Measure"
}
},
{
"f": {
"asOfDay": "2021-11-04",
"cloud": [
"Parameters.csv"
],
"contentType": "CSV",
"dir": "/data",
"table": "Parameters"
}
},
{
"f": {
"asOfDay": "2021-11-04",
"cloud": [
"Correlation.csv"
],
"contentType": "CSV",
"dir": "/data",
"table": "Correlation"
}
},
{
"f": {
"asOfDay": "2021-11-04",
"cloud": [
"Weight.csv"
],
"contentType": "CSV",
"dir": "/data",
"table": "Weight"
}
},
{
"z": [
{
"asOfDay": "2021-11-04",
"cloud": "keting.csv",
"contentType": "CSV",
"dir": "/data",
"table": "keting"
}
]
}
]