()
A very light sanity check for backfilling schedule imports
    Diff the results before and after parsing changes
A very light sanity check for backfilling schedule imports
    Diff the results before and after parsing changes
A very light sanity check for backfilling schedule imports Diff the results before and after parsing changes
def print_user_schedule_debug():
    """
    A very light sanity check for backfilling schedule imports
    Diff the results before and after parsing changes
    """
    for user in m.User.objects():
        items = user.get_all_schedule_items()

        courses = set()
        for i in items:
            courses.add(i.course_id)

        safe_name = user.name.encode('utf-8')
        print "%s, %s, %d USIs, %d courses" % (
                str(user.id), safe_name, len(items), len(courses))
def print_user_schedule_debug ( ) : for user in m . User . objects ( ) : items = user . get_all_schedule_items ( ) courses = set ( ) for i in items : courses . add ( i . course_id ) safe_name = user . name . encode ( 'utf-8' ) print "%s, %s, %d USIs, %d courses" % ( str ( user . id ) , safe_name , len ( items ) , len ( courses ) )