Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
beacon
Commits
3b377e19
Commit
3b377e19
authored
Sep 05, 2019
by
Jacek Lebioda
Browse files
Cast a value to a list if it's a string
parent
bcc97c02
Pipeline
#13570
failed with stage
in 17 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
code/backend/beacon/beacon.py
View file @
3b377e19
...
...
@@ -56,8 +56,10 @@ class Beacon(object):
response
[
'datasetAlleleResponses'
].
append
(
allele_response
)
def
dispatch_query
(
self
,
query
:
dict
,
user_groups
:
List
[
str
]):
dataset_ids
=
query
.
get
(
'datasetIds'
,
[])
beacon_id
=
self
.
settings
.
get_beacon_information
().
get
(
'id'
)
dataset_ids
=
query
.
get
(
'datasetIds'
,
[])
if
not
isinstance
(
dataset_ids
,
list
):
dataset_ids
=
[
dataset_ids
]
try
:
validate_input
(
**
query
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment