import json teams = set() with open('../data/nasouth/2026/nasouth26d1-event-feed.json', 'r') as f: for line in f: if not line.strip(): continue data = json.loads(line) if data.get('type') == 'teams': for t in data.get('data', []): if any('mid-atlantic' in g for g in t.get('group_ids', [])): teams.add(t['id']) print(f"Matched {len(teams)} teams") subs = 0 judgements = 0 with open('../data/nasouth/2026/nasouth26d1-event-feed.json', 'r') as f: for line in f: if not line.strip(): continue data = json.loads(line) if data.get('type') == 'submissions': for s in data.get('data', []): if s.get('team_id') in teams: subs += 1 if data.get('type') == 'judgements': for j in data.get('data', []): # We need to know if the submission was from our team pass # Can't easily check without keeping a dict of subs print(f"Total submissions for these teams: {subs}")