Skip to content

Commit

Permalink
update parameters for compareJob
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Sep 17, 2024
1 parent e51da6c commit c9df155
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions geospaas_rest_api/processing_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,15 @@ def get_signature(cls, parameters):

@staticmethod
def check_parameters(parameters):
accepted_keys = ('dataset_id', 'profiles_lookups')
accepted_keys = ('model', 'profiles')
if not set(parameters).issubset(set(accepted_keys)):
raise ValidationError(
f"The convert action accepts only these parameters: {', '.join(accepted_keys)}")
return parameters

@staticmethod
def make_task_parameters(parameters):
return (((parameters['dataset_id'],),),
{'profiles_lookups': parameters['profiles_lookups']})
return (((parameters['model'], parameters['profiles']),), {})


class HarvestJob(Job):
Expand Down

0 comments on commit c9df155

Please sign in to comment.