Ejemplo n.º 1
0
def memoization_task():
    """
    This method for memoization per day

    :return:
    """
    network.network()
Ejemplo n.º 2
0
def analysis_network(request):
    """
    Return group network

    :param request: request
    :return: json
    """
    if request.method == 'GET':
        group_id = request.GET.get("group", None)
        if Group.objects.filter(id=group_id).exists():
            network_json = network.network(group_id)
        else:
            network_json = network.network()

        return HttpResponse(network_json, content_type="application/json")
Ejemplo n.º 3
0
def analysis_network(request):
    """
    Return group network

    :param request: request
    :return: json
    """
    if request.method == 'GET':
        group_id = request.GET.get("group", None)
        if Group.objects.filter(id=group_id).exists():
            network_json = network.network(group_id)
        else:
            network_json = network.network()

        return HttpResponse(network_json, content_type="application/json")