Skip to content

Commit

Permalink
feat(pep_0604):
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikstranneheim committed Mar 13, 2024
1 parent f221f1b commit 038e60c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
29 changes: 17 additions & 12 deletions genotype_api/api/endpoints/plates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,29 @@
from pathlib import Path
from typing import Literal

from fastapi import (APIRouter, Depends, File, HTTPException, Query,
UploadFile, status)
from fastapi import APIRouter, Depends, File, HTTPException, Query, UploadFile, status
from fastapi.responses import JSONResponse
from sqlalchemy import asc, desc
from sqlmodel import Session, select
from sqlmodel.sql.expression import Select, SelectOfScalar

from genotype_api.database.crud.create import (create_analyses_sample_objects,
create_plate)
from genotype_api.database.crud.read import (check_analyses_objects,
get_analyses_from_plate,
get_plate, get_user_by_email)
from genotype_api.database.crud.create import create_analyses_sample_objects, create_plate
from genotype_api.database.crud.read import (
check_analyses_objects,
get_analyses_from_plate,
get_plate,
get_user_by_email,
)
from genotype_api.database.crud.update import refresh_sample_status
from genotype_api.database.models import (Analysis, Plate, PlateCreate,
PlateReadWithAnalyses,
PlateReadWithAnalysisDetail,
PlateReadWithAnalysisDetailSingle,
User)
from genotype_api.database.models import (
Analysis,
Plate,
PlateCreate,
PlateReadWithAnalyses,
PlateReadWithAnalysisDetail,
PlateReadWithAnalysisDetailSingle,
User,
)
from genotype_api.database.session_handler import get_session
from genotype_api.file_parsing.excel import GenotypeAnalysis
from genotype_api.file_parsing.files import check_file
Expand Down
24 changes: 16 additions & 8 deletions genotype_api/api/endpoints/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@

import genotype_api.database.crud.create
from genotype_api.constants import SEXES
from genotype_api.database.crud.read import (get_commented_samples,
get_incomplete_samples,
get_plate_samples, get_sample,
get_samples,
get_status_missing_samples)
from genotype_api.database.crud.read import (
get_commented_samples,
get_incomplete_samples,
get_plate_samples,
get_sample,
get_samples,
get_status_missing_samples,
)
from genotype_api.database.crud.update import refresh_sample_status
from genotype_api.database.models import (Analysis, Sample, SampleRead,
SampleReadWithAnalysisDeep, User,
compare_genotypes)
from genotype_api.database.models import (
Analysis,
Sample,
SampleRead,
SampleReadWithAnalysisDeep,
User,
compare_genotypes,
)
from genotype_api.database.session_handler import get_session
from genotype_api.match import check_sample
from genotype_api.models import MatchCounts, MatchResult, SampleDetail
Expand Down

0 comments on commit 038e60c

Please sign in to comment.