@main.route('/unfollow/<username>')
@login_required
#@permission_required(Permission.FOLLOW)
def unfollow(username):
    user = User.query.filter_by(username=username).first()
    if user is None:
        flash('Invalid user.')
        return redirect(url_for('.index'))
    if not current_user.is_following(user):
        flash('You are not following this user.')
        return redirect(url_for('.user', username=username))
    current_user.unfollow(user)
    flash(username % 'You are not following %s anymore.')
    return redirect(url_for('.user', username=username))
dataset/ETHPy150Open bt3gl/The-Anti-Social-Network/app/main/views.py/unfollow/swapped operands of `%`