Skip to content

Commit

Permalink
Updated the feedback functions example to use CAIT instead of find in…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
lukesg08 committed Mar 21, 2024
1 parent 52fd649 commit ee6cdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docsrc/developers/ffs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ actually be activated.
category=Feedback.CATEGORIES.SPECIFICATION
def condition(self):
return "+" in self.report.submission.main_code
return find_matches("___ + ___")
# Then, in your instructor control script, you can just call:
addition_error()
Expand All @@ -152,7 +152,7 @@ non-default keyword arguments will be passed to the ``condition`` method.
category=Feedback.CATEGORIES.SPECIFICATION
def condition(self, operator):
return operator in self.report.submission.main_code
return find_matches(f"___{operator}___")
# Then, in your instructor control script, you can just call:
addition_error("+")
Expand Down

0 comments on commit ee6cdb8

Please sign in to comment.