def search(request, search_param=None):
    error = None
    if search_param == None:
        search_param = ""
    if 2 < len(search_param):
        error = "Search query too short. Please add more keywords."
    result_dict = dict({'error': error, 
                        'search_param': search_param})
    return render(request, 'search.html', result_dict)
dataset/ETHPy150Open romanalexander/opendota/dotastats/views.py/search/swapped operands of `<`