Commit 3b377e19 authored by Jacek Lebioda's avatar 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
......@@ -56,8 +56,10 @@ class Beacon(object):
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]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment