Coding standards fixes

This commit is contained in:
Chris Hill 2016-04-03 12:14:17 +01:00
parent ae394cf028
commit 33cbda294d
1 changed files with 3 additions and 3 deletions

View File

@ -306,8 +306,8 @@ class SongMediaItem(MediaManagerItem):
""" """
log.debug('display results Book') log.debug('display results Book')
self.list_view.clear() self.list_view.clear()
search_results = sorted(search_results, key=lambda songbook_entry: (get_natural_key(songbook_entry.songbook.name), search_results = sorted(search_results, key=lambda songbook_entry:
get_natural_key(songbook_entry.entry))) (get_natural_key(songbook_entry.songbook.name), get_natural_key(songbook_entry.entry)))
for songbook_entry in search_results: for songbook_entry in search_results:
if songbook_entry.song.temporary: if songbook_entry.song.temporary:
continue continue
@ -367,7 +367,7 @@ class SongMediaItem(MediaManagerItem):
log.debug('display results CCLI number') log.debug('display results CCLI number')
self.list_view.clear() self.list_view.clear()
songs = sorted(search_results, key=lambda song: (get_natural_key(song.ccli_number), songs = sorted(search_results, key=lambda song: (get_natural_key(song.ccli_number),
song.sort_key)) song.sort_key))
for song in songs: for song in songs:
# Do not display temporary songs # Do not display temporary songs
if song.temporary: if song.temporary: