from app import create_app, db
from app.models.topics import Topic

def check_all_subjects():
    app = create_app('development')
    with app.app_context():
        subs = db.session.query(Topic.subject).distinct().all()
        print("Subjects in Topic table:")
        for s in subs:
            print(f"- {s[0]}")

if __name__ == '__main__':
    check_all_subjects()
