def import_post(user, import_item):
    title = import_item.title
    if not title:
        title = "(Noname)"
    kwargs = {
        'author': user, 
        'title': title, 
        'tease': import_item.description,
        'body': import_item.text
    }
    if settings.INSTALLED_APPS in 'voter':
        kwargs['rating'] = create_rating()
    post = Post(**kwargs)
    post.save()
    return 'http://url'
dataset/ETHPy150Open ilblackdragon/django-blogs/blog/importer.py/import_post/swapped operands of `in`