- import json
- reports = json.load(open('C:/GlobalCube/Tasks/gctools/logs/config/reports.json', 'r'))
- reports_filter = [r['meta']['optional'].keys()
- for r in reports
- if 'meta' in r and len(r['meta']['required'].keys()) > 0
- and 'p_Zeit' not in r['meta']['optional']]
- print(reports_filter[0])
|