Ejemplo n.º 1
0
    def handle(self, *args, **options):
        semesters = owlxp.update_semesters()
        if len(args) > 0:
            semesters = [Semester.objects.get(code=code) for code in args]

        # Load courses and sections for the first semester
        owlxp.load_courses(semesters[0])
        owlxp.load_sections(semesters[0])
        del semesters[0]

        # For rest of semesters, do shallow update for courses and load for sections
        for s in semesters:
            owlxp.update_courses(s, shallow=True)
            owlxp.load_sections(s)

        # Load degree programs
        ps.load_programs()
Ejemplo n.º 2
0
 def test_load_programs(self):
     programs = ds.load_programs()
     pprint(programs)
Ejemplo n.º 3
0
 def test_baccalaureates_are_parsable(self):
     oids = ds.get_program_detail_oids(12, "type:81")
     for k in oids.keys():
         logger.debug("Parsing '%s' - oid: '%s'" % (k, oids[k]))
         ds.visit_program_details(12, oids[k])
Ejemplo n.º 4
0
    def handle(self, *args, **options):

        ps.load_programs()