Skip to content

Commit

Permalink
Merge pull request #48 from Open-EO/fix/multiplicated-processes
Browse files Browse the repository at this point in the history
Don't list processes multiple times in /processes endpoint
  • Loading branch information
zcernigoj authored Nov 6, 2023
2 parents f81552d + 9fef123 commit dc8df47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def get_all_process_definitions():
partially_supported_process.process_id for partially_supported_process in partially_supported_processes
]

for supported_process in list_supported_processes() + partially_supported_processes_ids:
unique_supported_processes = list(set(list_supported_processes() + partially_supported_processes_ids))

for supported_process in unique_supported_processes:
files.extend(glob.glob(get_abs_file_path(f"process_definitions/{supported_process}.json")))

for file in files:
Expand Down

0 comments on commit dc8df47

Please sign in to comment.