def sb_2l(self, username, post_id): count, comment = Comment.last_with_count(post_id) user = User.get(comment.author_id) if count == 2 and username == user.username: gold = random.randint(*Gold['2L']) user.update(gold=gold)