henryyang42/NTHU_Course

Search by student ID failed in "PHYS 022"

Closed this issue · 9 comments

Failed between "PHYS102B A" and "PHYS102BA", "EECS102B" and "EECS102BA"...

from data_center.models import *
ds = Department.objects.all()
for d in ds:
    d.dept_name = d.dept_name.replace('B A', 'BA')
    d.dept_name = d.dept_name.replace('B B', 'BB')
    d.save()

Use this to do a hotfix.
Some exception should be handled by human.

I will checkout all department id.
By the way, dept_name for EECS looks like "EECS101B", since it has only one class.

Yes, it's strange. Maybe we should merge 2 same EECS101B manually.

Failed list (We generate "BA" but actually they have only a "B")

  • UPMT100B
  • SCI 103B
  • QF 100B
  • LSIP103B
  • LS 100B
  • IPNS100B
  • IPE 103B
  • IEEM100B
  • FL 100B
  • EECS103B
  • CL 100B
  • CHEM100B
  • CHE 103B
  • BMES101B

I am wrong.
Our dept_name is correct, but it return more than an object.
2015-05-27 10 31 29

I have told you we should merge 2 same EECS101B manually.
EECS is one exception.

I will solve it on crawling.

Fix in 9d71f0e, close.