Skip to content

Commit

Permalink
Fix a bug where not copying from a classification on web create faile…
Browse files Browse the repository at this point in the history
…d if there was already a classification for the allele
  • Loading branch information
TheMadBug committed Sep 6, 2024
1 parent d1d431d commit 33cdc79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classification/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ def create_classification_object(request) -> Classification:
ensembl_transcript_accession = request.POST.get("ensembl_transcript_accession")
sample_id = request.POST.get("sample_id")
copy_from_id = request.POST.get("copy_from_vcm_id")
if copy_from_id:
copy_from_id = int(copy_from_id)

evidence_json = request.POST.get("evidence_json")

genome_build = GenomeBuild.get_name_or_alias(genome_build_name)
Expand Down

0 comments on commit 33cdc79

Please sign in to comment.