def getUUID()

in distill/utils/crud.py [0:0]


def getUUID(log):
    """
    Creates a unique id for a userale log.
    :param log: Userale log in the form of a dictionary
    :return: A string representing a unique identifier for the log
    """
    
    if 'type' in log:
        return str(log['sessionID']) + str(log['clientTime']) + str(log['logType']) + str(log['type'])
    else:
        return str(log['sessionID']) + str(log['clientTime']) + str(log['logType'])