fix: black (#1164)

This commit is contained in:
Markos Gogoulos 2025-01-22 20:16:21 +02:00 committed by GitHub
parent d2ee12087c
commit a7562c244e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -817,10 +817,8 @@ class Media(models.Model):
""" """
ret = [] ret = []
# Retrieve all subtitles and sort by the first letter of their associated language's title # Retrieve all subtitles and sort by the first letter of their associated language's title
sorted_subtitles = sorted(self.subtitles.all(), key=lambda s: s.language.title[0]) sorted_subtitles = sorted(self.subtitles.all(), key=lambda s: s.language.title[0])
for subtitle in sorted_subtitles: for subtitle in sorted_subtitles:
ret.append( ret.append(
{ {