Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit f0c8a70

Browse files
committed
Merge branch 'release/2.2.2' of github.com:VariantEffect/mavedb into release/2.2.2
2 parents ed93c6f + 26ff321 commit f0c8a70

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

api/views.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,14 +534,19 @@ def _parse_reference_maps_data(data):
534534
request_data = json.loads(request.POST["request"])
535535
scoreset_request_data = request_data["scoreset"]
536536
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)
540541
reference_maps_request_data = request_data["reference_maps"]
541542
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),
545550
}
546551
if "fasta_file" in request.FILES:
547552
files["sequence_fasta"] = request.FILES["fasta_file"]

main/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
urlpatterns = [
1212
url(r"^$", views.home_view, name="home"),
1313
# ------------ Documentation landing page ---------------------- #
14-
url(r"^docs", views.documentation_view, name="docs-landing"),
14+
url(r"^docs/$", views.documentation_view, name="docs-landing"),
1515
# ------------ MaveDB documentation ---------------------- #
1616
url(
1717
r"^docs/mavedb/$",

0 commit comments

Comments
 (0)