Add Description to Job Types #104268

Manually merged
Sybren A. Stüvel merged 10 commits from Taylor-Wiebe/flamenco:job-description into main 2024-04-04 11:16:11 +02:00
Showing only changes of commit d110136342 - Show all commits

View File

@ -116,7 +116,8 @@ def _store_available_job_types(available_job_types: _AvailableJobTypes) -> None:
else: else:
# Convert from API response type to list suitable for an EnumProperty. # Convert from API response type to list suitable for an EnumProperty.
_job_type_enum_items = [ _job_type_enum_items = [
(job_type.name, job_type.label, job_type.description) for job_type in job_types (job_type.name, job_type.label, getattr(job_type, "description", ""))
for job_type in job_types
] ]
_job_type_enum_items.insert(0, _JOB_TYPE_NOT_SELECTED_ENUM_ITEM) _job_type_enum_items.insert(0, _JOB_TYPE_NOT_SELECTED_ENUM_ITEM)