Skip to content

Commit

Permalink
Shrink sasami and do a little rewrapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
colons committed Nov 27, 2023
1 parent 2af1708 commit b5ad1e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nkdsu/apps/vote/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nkdsu/apps/vote/tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': (
Expand Down

0 comments on commit b5ad1e7

Please sign in to comment.