From c017ee2eaa34015a6b2912021a04c570cfeefe92 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 1 Sep 2012 10:50:10 -0400 Subject: [PATCH] handler:submission: fix non-lowercase subject assignment matching. Also accept (and ignore) unrecognized keyword arguments in run(). This will allow interoperability with other handlers which may take other arguments. --- pygrader/handler/submission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygrader/handler/submission.py b/pygrader/handler/submission.py index 7011f55..7d16568 100644 --- a/pygrader/handler/submission.py +++ b/pygrader/handler/submission.py @@ -23,7 +23,7 @@ from . import respond as _respond def run(basedir, course, original, message, person, subject, max_late=0, respond=None, use_color=None, - dry_run=None): + dry_run=None, **kwargs): """ >>> from pgp_mime.email import encodedMIMEText >>> from pygrader.test.course import StubCourse @@ -164,7 +164,7 @@ def run(basedir, course, original, message, person, subject, max_late=max_late, use_color=use_color, dry_run=dry_run) def _match_assignment(assignment, subject): - return assignment.name.lower() in subject + return assignment.name.lower() in subject.lower() def _save_local_message_copy(msg, person, assignment_path, use_color=None, dry_run=False): -- 2.26.2