more sqlalchemy warnings
This commit is contained in:
1 parent
b37213c52c
commit
1e8a7d4b05
1 file changed
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
from couchpotato import get_session
|
from couchpotato import get_session
|
||||||
|
from couchpotato.core.helpers.encoding import toUnicode
|
||||||
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
|
||||||
@@ -16,7 +17,7 @@ class History(Notification):
|
|||||||
db = get_session()
|
db = get_session()
|
||||||
history = Hist(
|
history = Hist(
|
||||||
added = int(time.time()),
|
added = int(time.time()),
|
||||||
message = message,
|
message = toUnicode(message),
|
||||||
release_id = data.get('id', 0)
|
release_id = data.get('id', 0)
|
||||||
)
|
)
|
||||||
db.add(history)
|
db.add(history)
|
||||||
|
|||||||
Reference in new issue
Block a user