import task comment from spreadsheet

pull/5/head
florentin.luce 2024-02-14 15:25:44 +01:00
parent f1e9d1b2cb
commit 32d8ed626b
1 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,11 @@ class VSETB_OT_import_spreadsheet(Operator):
elif cell_type == 'METADATA' and spreadsheet.import_custom_data:
metadata = project.metadata_types[cell.import_name]
setattr(strip_settings.metadata, metadata.field_name, cell_value)
elif cell_type == 'TASK_TYPE':
task_type = project.task_types[cell.import_name]
task = getattr(strip_settings.tasks, task_type.name)
task.comment = cell_value
if cell_type == 'ASSET_TYPE' and spreadsheet.import_casting: