Skip to content

Commit

Permalink
Merge pull request #49 from ooemperor/dev
Browse files Browse the repository at this point in the history
Fix deleting not workign properly
  • Loading branch information
ooemperor authored Mar 25, 2024
2 parents 74494f9 + 2c6734c commit 1627f8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codeGrader/backend/db/Exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Exercise(Base):
"Task",
collection_class=ordering_list("name"),
order_by="[Task.name]",
# cascade="all",
cascade="all",
passive_deletes=True,
lazy="subquery",
join_depth=3,
Expand Down
2 changes: 1 addition & 1 deletion codeGrader/backend/db/Subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Subject(Base):
"Exercise",
collection_class=ordering_list("name"),
order_by="[Exercise.name]",
# cascade="all",
cascade="all",
passive_deletes=True,
lazy="subquery",
backref=backref("ExerciseSubject", lazy="joined")
Expand Down

0 comments on commit 1627f8f

Please sign in to comment.