Skip to content

Commit

Permalink
drop(core): remove get_subject_short_display
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Nov 9, 2024
1 parent 662ddf5 commit 905a184
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,6 @@ class Meta:
def __str__(self) -> str:
return self.name

@property
def get_subject_short_display(self):
if self.subject == "A":
return "Algebra"
elif self.subject == "C":
return "Combo"
elif self.subject == "G":
return "Geom"
elif self.subject == "N":
return "Number theory"
elif self.subject == "M":
return "Misc"
elif self.subject == "F":
return "Func eqn"
elif self.subject == "K":
return "Secret"

@property
def artwork_basename(self) -> str | None:
return None if not self.artwork else os.path.basename(self.artwork.name)
Expand Down
1 change: 0 additions & 1 deletion core/templates/core/unit_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ <h4>
{% endif %}
</h4>
<div>
{{ unitgroup.get_subject_short_display }}:
{% for unit in units %}
{% if unit.has_pset %}
<span class="text-success">{{ unit.code }}<sup></sup></span>
Expand Down

0 comments on commit 905a184

Please sign in to comment.