Skip to content

Commit

Permalink
chore: rename a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Sep 10, 2024
1 parent 7aff413 commit 1c3f1c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions course_discovery/apps/course_metadata/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3560,11 +3560,11 @@ def active_subjects(self):
"""
if self.primary_subject_override:
if self.primary_subject_override not in self.subjects.all():
product_subjects = [self.primary_subject_override] + list(self.subjects.all())
subjects = [self.primary_subject_override] + list(self.subjects.all())
else:
product_subjects = list(self.subjects.all())
subjects = list(self.subjects.all())

return product_subjects
return subjects

@property
def topics(self):
Expand Down

0 comments on commit 1c3f1c3

Please sign in to comment.