Merge pull request #386 from JackDandy/feature/FixGroupsWhenNoShows

Fix show list view when no shows exist and "Group show lists shows in…
This commit is contained in:
JackDandy 2015-06-06 06:29:26 +01:00
commit c90c1a5f2b
3 changed files with 5 additions and 2 deletions

View file

@ -23,6 +23,7 @@
* Update PyNMA to hybrid v1.0
* Change first run after install to set up the main db to the current schema instead of upgrading
* Change don't create a backup from an initial zero byte main database file, PEP8 and code tidy up
* Fix show list view when no shows exist and "Group show lists shows into" is set to anything other than "One Show List"
[develop changelog]
* Update Requests library 2.7.0 (ab1f493) to 2.7.0 (8b5e457)

View file

@ -507,6 +507,7 @@ inc_bottom.tmpl
width:100%;
padding:20px 0;
text-align:center;
clear:both;
font-size:12px
}

View file

@ -585,8 +585,9 @@ class Home(MainHandler):
index += 1
if anime_results:
t.showlists.append(['container%s' % index, 'Anime List', anime_results])
else:
t.showlists.append(['container%s' % index, 'Show List', sickbeard.showList])
if 0 == len(t.showlists):
t.showlists.append(['container0', 'Show List', sickbeard.showList])
if 'simple' != sickbeard.HOME_LAYOUT:
t.network_images = {}