diff --git a/lms/djangoapps/grades/models.py b/lms/djangoapps/grades/models.py index c6cb91b1d8..6eb1d524f6 100644 --- a/lms/djangoapps/grades/models.py +++ b/lms/djangoapps/grades/models.py @@ -232,7 +232,7 @@ class VisibleBlocks(models.Model): only for those that aren't already created. """ cached_records = cls.bulk_read(user_id, course_key) - non_existent_brls = {brl.hash_value for brl in block_record_lists if brl.hash_value not in cached_records} + non_existent_brls = {brl for brl in block_record_lists if brl.hash_value not in cached_records} cls.bulk_create(user_id, course_key, non_existent_brls) @classmethod