(request)
return ip
Attempt to extract first three number from ip adress.
Attempt to extract first three number from ip adress.
Attempt to extract first three number from ip adress .
def ip_triplet(request):
    """
    Attempt to extract first three number from ip adress.
    """
    oip = get_ip(request=request)
    ips = oip.split(".")[:-1]
    ip = ".".join(ips)
    return ip
def ip_triplet ( request ) : oip = get_ip ( request = request ) ips = oip . split ( "." ) [ : - 1 ] ip = "." . join ( ips ) return ip