filter_reports.py 344 B

123456789
  1. import json
  2. reports = json.load(open('C:/GlobalCube/Tasks/gctools/logs/config/reports.json', 'r'))
  3. reports_filter = [r['meta']['optional'].keys()
  4. for r in reports
  5. if 'meta' in r and len(r['meta']['required'].keys()) > 0
  6. and 'p_Zeit' not in r['meta']['optional']]
  7. print(reports_filter[0])