This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -534,14 +534,19 @@ def _parse_reference_maps_data(data):
534
534
request_data = json .loads (request .POST ["request" ])
535
535
scoreset_request_data = request_data ["scoreset" ]
536
536
target_request_data = request_data ["target" ]
537
- uniprot_request_data = request_data ["uniprot" ]
538
- ensembl_request_data = request_data ["ensembl" ]
539
- refseq_request_data = request_data ["refseq" ]
537
+ # Accept none value for uniprot, ensemb and refseq.
538
+ uniprot_request_data = request_data .get ("uniprot" , None )
539
+ ensembl_request_data = request_data .get ("ensembl" , None )
540
+ refseq_request_data = request_data .get ("refseq" , None )
540
541
reference_maps_request_data = request_data ["reference_maps" ]
541
542
files = {
542
- constants .variant_score_data : request .FILES ["score_data" ],
543
- constants .variant_count_data : request .FILES ["count_data" ],
544
- constants .meta_data : request .FILES ["meta_data" ],
543
+ constants .variant_score_data : request .FILES .get (
544
+ "score_data" , None
545
+ ),
546
+ constants .variant_count_data : request .FILES .get (
547
+ "count_data" , None
548
+ ),
549
+ constants .meta_data : request .FILES .get ("meta_data" , None ),
545
550
}
546
551
if "fasta_file" in request .FILES :
547
552
files ["sequence_fasta" ] = request .FILES ["fasta_file" ]
Original file line number Diff line number Diff line change 11
11
urlpatterns = [
12
12
url (r"^$" , views .home_view , name = "home" ),
13
13
# ------------ Documentation landing page ---------------------- #
14
- url (r"^docs" , views .documentation_view , name = "docs-landing" ),
14
+ url (r"^docs/$ " , views .documentation_view , name = "docs-landing" ),
15
15
# ------------ MaveDB documentation ---------------------- #
16
16
url (
17
17
r"^docs/mavedb/$" ,
You can’t perform that action at this time.
0 commit comments