Skip to content

Commit

Permalink
ArchiveHandler - lightcurve_ids: int -> list (#556)
Browse files Browse the repository at this point in the history
Convert `lightcurve_ids` from an int to a list if its not already a list
  • Loading branch information
mcoughlin authored Aug 5, 2024
1 parent 2271c5e commit e50265b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/skyportal/skyportal/handlers/api/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e50265b

Please sign in to comment.