Commit d615ca6c authored by echel0n's avatar echel0n
Browse files

Fixed issue #525 - removal of shows not taking due to database commit not being executed

parent 3bf4977c
......@@ -1046,7 +1046,7 @@ class TVShow(object):
session.query(MainDB.TVShow).filter_by(indexer_id=self.indexer_id).delete()
session.query(MainDB.TVEpisode).filter_by(showid=self.indexer_id).delete()
session.query(MainDB.IMDbInfo).filter_by(indexer_id=self.indexer_id).delete()
self.save()
session.commit()
# remove episodes from show episode cache
self.flush_episodes()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment