more sqlalchemy warnings

This commit is contained in:
Ruud
2012-01-24 21:27:14 +01:00
parent b37213c52c
commit 1e8a7d4b05
@@ -1,4 +1,5 @@
from couchpotato import get_session
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from couchpotato.core.settings.model import History as Hist
@@ -16,7 +17,7 @@ class History(Notification):
db = get_session()
history = Hist(
added = int(time.time()),
message = message,
message = toUnicode(message),
release_id = data.get('id', 0)
)
db.add(history)