Fix issue where setting the status for an episode that doesn't need a db update fails.

This commit is contained in:
JackDandy 2015-02-10 20:21:10 +00:00
parent 5eeb369ae5
commit 7e29161ab5
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
### 0.6.4 (2015-02-10 20:20:00 UTC)
* Fix issue where setting the status for an episode that doesn't need a db update fails
### 0.6.3 (2015-02-10 05:30:00 UTC)
* Change KickAssTorrents URL

View file

@ -4216,7 +4216,9 @@ class Home(MainHandler):
epObj.status = int(status)
# mass add to database
sql_l.append(epObj.get_sql())
result = epObj.get_sql()
if None is not result:
sql_l.append(result)
if len(sql_l) > 0:
myDB = db.DBConnection()