Commit 29d94294 authored by echel0n's avatar echel0n

Added debug logging for when new announcement gets added to web-ui

parent fc7c71d5
......@@ -22,6 +22,7 @@ import threading
from sqlalchemy import orm
import sickrage
from sickrage.core.api import APIError
from sickrage.core.api.announcements import AnnouncementsAPI
from sickrage.core.databases.cache import CacheDB
......@@ -86,6 +87,7 @@ class Announcements(object):
def add(self, ahash, title, description, image, date, session=None):
self._announcements[ahash] = Announcement(title, description, image, date, ahash)
if not session.query(CacheDB.Announcements).filter_by(hash=ahash).count():'Adding new announcement to Web-UI')
session.add(CacheDB.Announcements(**{'hash': ahash}))
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