more sqlalchemy warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user