From 1e8a7d4b053756256d3e944f79674826a5452433 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 24 Jan 2012 21:27:14 +0100 Subject: [PATCH] more sqlalchemy warnings --- couchpotato/core/notifications/history/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/notifications/history/main.py b/couchpotato/core/notifications/history/main.py index aa55cf0d..f235fd03 100644 --- a/couchpotato/core/notifications/history/main.py +++ b/couchpotato/core/notifications/history/main.py @@ -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)