Browse Source

Don't do history test on load

pull/51/merge
Ruud 14 years ago
parent
commit
2c25a4771c
  1. 8
      couchpotato/core/notifications/history/main.py

8
couchpotato/core/notifications/history/main.py

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

Loading…
Cancel
Save