Update post.py

Fixed transaction bug