diff --git a/extensions/skyportal/skyportal/handlers/api/archive.py b/extensions/skyportal/skyportal/handlers/api/archive.py index d674d3a9..d778f742 100644 --- a/extensions/skyportal/skyportal/handlers/api/archive.py +++ b/extensions/skyportal/skyportal/handlers/api/archive.py @@ -925,6 +925,10 @@ def post(self): if catalog is None: return self.error("Missing required parameter: catalog") + + if type(light_curve_ids) is int: + light_curve_ids = [light_curve_ids] + if light_curve_ids is None or len(light_curve_ids) == 0: return self.error("Bad required parameter: light_curve_ids")