diff options
Diffstat (limited to 'pastepy.py')
-rw-r--r-- | pastepy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ class Paste(object): try: session = db.Session() - paste = db.Paste(hash, nick, datetime.datetime.utcnow(), syntax, title, text) + paste = db.Paste(hash, nick.decode('utf8'), datetime.datetime.utcnow(), syntax.decode('utf8') if syntax else None, title.decode('utf8'), text.decode('utf8')) session.add(paste) session.commit() finally: |