23 lines
819 B
Python
23 lines
819 B
Python
import sys
|
|
import os
|
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
from generate_projects_json import parse_missions_md
|
|
|
|
projects = parse_missions_md('data/missions02.md')
|
|
|
|
categories = set()
|
|
learning_types = set()
|
|
difficulties = set()
|
|
|
|
for no, p in sorted(projects.items()):
|
|
categories.add(f"{p['category']}/{p['sub_category']}")
|
|
learning_types.add(p['learning_type'])
|
|
difficulties.add(p['p_difficulty'])
|
|
if len(p['missions']) != 10:
|
|
print(f"WARNING: Project {no} ({p['p_id']}) has {len(p['missions'])} missions instead of 10")
|
|
|
|
print(f"Total projects: {len(projects)}")
|
|
print(f"All 60 projects have 10 missions: {all(len(p['missions']) == 10 for p in projects.values())}")
|
|
print("Learning types:", sorted(list(learning_types)))
|
|
print("Difficulties:", sorted(list(difficulties)))
|