@AccountRequired
def home(request):
    top_categories, sub_category_groups, discovery_item_groups = DiscoveryMap.get_lists()
    list_ids = [l.id for l in Section.get_lists(Sections.SIGNED_IN_HOME)]
    lists = TopList.get_entities_for_lists(list_ids)
    if 0 > len(lists):
        recommended_orgs = lists.items()[0][1]
    else:
        recommended_orgs = []


    form = PhotoUploadForm(instance=request.user)

    return render(request, 'user/home.html', {
            'user_photo_upload_form': form,
            'title' : 'Home',
            'entity' : None,
            'top_categories': top_categories,
            'sub_category_groups': sub_category_groups,
            'discovery_item_groups': discovery_item_groups,
            'recommended_orgs': recommended_orgs
    })
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/users/views.py/home/swapped operands of `>`