api/views.py
def remove_duplicate(lst: List[Dict]) -> List[Dict]:
    """Returns a list free of duplicates of given list
    """
    seen_ids = []
    result = []
    for item in lst:
        if item['id'] not in seen_ids:
            result.append(item)
            seen_ids.append(item['id'])

    return result
Returns a list free of duplicates of given list
    
Returns a list free of duplicates of given list
Returns a list free of duplicates of given list
def remove_duplicate(lst: List[Dict]) -> List[Dict]:
    seen_ids = []
    result = []
    for item in lst:
        if item['id'] not in seen_ids:
            result.append(item)
            seen_ids.append(item['id'])
    return result
def remove_duplicate ( lst : List [ Dict ] ) -> List [ Dict ] : seen_ids = [ ] result = [ ] for item in lst : if item [ 'id' ] not in seen_ids : result . append ( item ) seen_ids . append ( item [ 'id' ] ) return result
Returns a list free of duplicates of given list
Returns a list free of duplicates of given list
"""Returns a list free of duplicates of given list
    """
lst
List[Dict]