Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 9d8a885

Browse files
committed
Fix: delete useinfo rows when deleting course
1 parent cf91354 commit 9d8a885

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controllers/admin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,9 @@ def deletecourse():
931931
students.update(course_id=bcid)
932932
uset = db(db.user_courses.course_id == courseid)
933933
uset.delete()
934+
# remove the rows from useinfo
935+
infoset = db(db.useinfo.course_id == course_name)
936+
infoset.delete()
934937
db(db.courses.id == courseid).delete()
935938
try:
936939
session.clear()
@@ -1656,6 +1659,8 @@ def get_assignment_release_states():
16561659
return json.dumps({})
16571660

16581661

1662+
# Called to assemble the list of questions for the assignment builder
1663+
#
16591664
def _get_toc_and_questions():
16601665
# return a dictionary with a nested dictionary representing everything the
16611666
# picker will need in the instructor's assignment authoring tab

0 commit comments

Comments
 (0)