Skip to content

Commit

Permalink
fix(study): correct access to study additional_data
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Feb 23, 2024
1 parent ad417cf commit cd8c4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antarest/study/storage/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def update_antares_info(metadata: Study, study_tree: FileStudyTree, *, update_au
study_data_info["antares"]["created"] = metadata.created_at.timestamp()
study_data_info["antares"]["lastsave"] = metadata.updated_at.timestamp()
study_data_info["antares"]["version"] = metadata.version
if update_author:
if update_author and metadata.additional_data:
study_data_info["antares"]["author"] = metadata.additional_data.author
study_tree.save(study_data_info, ["study"])

Expand Down

0 comments on commit cd8c4c6

Please sign in to comment.