import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')

from app import create_app, db
from app.models.learning import VocationalContent

app = create_app('development')
with app.app_context():
    skills = VocationalContent.query.all()
    print(f"Total skills: {len(skills)}")
    for s in skills:
        print(f"ID: {s.id}, Lang: {s.language}, Title: {s.title}, URL: {s.resource_url}")
