diff --git a/nkdsu/apps/vote/models.py b/nkdsu/apps/vote/models.py index 43b3a75e..2a86eb57 100644 --- a/nkdsu/apps/vote/models.py +++ b/nkdsu/apps/vote/models.py @@ -673,7 +673,9 @@ def __init__(self, full_tag: str): else: self.kind, self.specifics = ('', self.full_role) - self.sortkey_group, self.verbose, self.plural = sortable_kinds.get(self.kind.lower(), (99, 'Other', 'Others')) + self.sortkey_group, self.verbose, self.plural = sortable_kinds.get( + self.kind.lower(), (99, 'Other', 'Others') + ) if self.caveat and self.caveat.lower().strip() == 'rebroadcast': self.sortkey_group += 0.5 diff --git a/nkdsu/apps/vote/tests/test_parsers.py b/nkdsu/apps/vote/tests/test_parsers.py index 50e1a2ea..9a581d72 100644 --- a/nkdsu/apps/vote/tests/test_parsers.py +++ b/nkdsu/apps/vote/tests/test_parsers.py @@ -282,7 +282,7 @@ def test_group_detection(self) -> None: 'takt op.Destiny ED': ('takt op.Destiny', None, 'ED', '', 'ED'), 'Im OP Even at lv1 OP': ('Im OP Even at lv1', None, 'OP', '', 'OP'), 'Im OP Even at lv1 OP 1': ('Im OP Even at lv1', None, 'OP', '1', 'OP 1'), - 'sasami@ganbaranai OP B-sIdE': ('sasami@ganbaranai', None, 'OP', 'B-sIdE', 'OP B-sIdE'), + 'sasami@ganbont OP B-sIdE': ('sasami@ganbont', None, 'OP', 'B-sIdE', 'OP B-sIdE'), 'twgok ED EP07': ('twgok', None, 'ED', 'EP07', 'ED EP07'), 'idfs ED EP01-03': ('idfs', None, 'ED', 'EP01-03', 'ED EP01-03'), 'idfs insert song EP01-03': (