from logging import getLogger

from django.shortcuts import render
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden
from django.shortcuts import get_object_or_404
from rest_framework.response import Response
from rest_framework.decorators import api_view

from sasdata.dataloader.loader import Loader

from serializers import FitSerializer
from .models import (
    AnalysisBase,
    AnalysisParameterBase,
)

analysis_logger = getLogger(__name__)

@api_view(["GET"])
def list_analysis_done(request, version = None):
    return 0

#takes DataInfo and saves it into to specified file location
