Commit 1e290d8b authored by echel0n's avatar echel0n

Added debug logging for when show is saved to database

parent 4337c2b5
......@@ -491,6 +491,7 @@ class TVShow(object):
return BlackAndWhiteList(self.indexer_id)
def save(self):
sickrage.app.log.debug("{0:d}: Saving to database: {1}".format(self.indexer_id, self.name))
query = self.db_session.query(MainDB.TVShow).filter_by(indexer_id=self.indexer_id, indexer=self.indexer).one_or_none()
if query:
query.update(**self._data_local)
......
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