|
|
@ -1,9 +1,7 @@ |
|
|
|
from couchpotato import get_session |
|
|
|
from couchpotato.core.event import addEvent |
|
|
|
from couchpotato.core.logger import CPLog |
|
|
|
from couchpotato.core.notifications.base import Notification |
|
|
|
from couchpotato.core.settings.model import History as Hist |
|
|
|
from couchpotato.environment import Env |
|
|
|
import time |
|
|
|
|
|
|
|
log = CPLog(__name__) |
|
|
@ -13,12 +11,6 @@ class History(Notification): |
|
|
|
|
|
|
|
listen_to = ['movie.downloaded', 'movie.snatched', 'renamer.canceled'] |
|
|
|
|
|
|
|
def __init__(self): |
|
|
|
super(Notification, self).__init__() |
|
|
|
|
|
|
|
if Env.doDebug(): |
|
|
|
addEvent('app.load', self.test) |
|
|
|
|
|
|
|
def notify(self, message = '', data = {}): |
|
|
|
|
|
|
|
db = get_session() |
|
|
|