BUGS-NYU/schedge

Duplicate section on scrape

Closed this issue · 3 comments

When I run schedge db scrape, I get the following error:

Exception in thread "main" org.jooq.exception.DataAccessException: SQL [insert into 
"public"."sections" ("registration_number", "course_id", "section_code", "instructor", "section_type", 
"section_status") values (?, ?, ?, ?, ?, ?) returning "public"."sections"."id"];
ERROR: duplicate key value violates unique constraint "sections_pkey"
  Detail: Key (course_id, section_code)=(5921, 001) already exists.
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "sections_pkey"
A1Liu commented

What arguments did you use when running that command?

--term 1204

A1Liu commented

This has been fixed.