mirror of
https://github.com/nikdoof/tvorganise.git
synced 2026-01-31 01:58:20 +00:00
Sort shownames and season numbers
This commit is contained in:
@@ -193,7 +193,7 @@ class ShowContainer:
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
out=""
|
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"
|
out += str(current_show) + "\n"
|
||||||
return out
|
return out
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ class Show:
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
out = self.show_name + "\n"
|
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"
|
out += str(cur_season) + "\n"
|
||||||
return out
|
return out
|
||||||
#end __str__
|
#end __str__
|
||||||
|
|||||||
Reference in New Issue
Block a user