mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 06:42:16 +00:00
Sort shownames and season numbers
This commit is contained in:
@@ -193,7 +193,7 @@ class ShowContainer:
|
||||
|
||||
def __str__(self):
|
||||
out=""
|
||||
for current_show_name, current_show in self.shows.items():
|
||||
for current_show_name, current_show in sorted( self.shows.items() ):
|
||||
out += str(current_show) + "\n"
|
||||
return out
|
||||
|
||||
@@ -219,7 +219,7 @@ class Show:
|
||||
|
||||
def __str__(self):
|
||||
out = self.show_name + "\n"
|
||||
for cur_season_no, cur_season in self.seasons.items():
|
||||
for cur_season_no, cur_season in sorted( self.seasons.items() ):
|
||||
out += str(cur_season) + "\n"
|
||||
return out
|
||||
#end __str__
|
||||
|
||||
Reference in New Issue
Block a user