Skip to content

Commit

Permalink
Fixed CategorizedObjectPreviewAdapter.status when an existing eleme…
Browse files Browse the repository at this point in the history
…nt is updated.
  • Loading branch information
gbastien committed Nov 29, 2023
1 parent 7f5088c commit 2ec83ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Changelog
0.62 (unreleased)
-----------------

- Nothing changed yet.

- Fixed `CategorizedObjectPreviewAdapter.status` when an existing element is updated.
[gbastien]

0.61 (2023-11-27)
-----------------
Expand Down
4 changes: 4 additions & 0 deletions src/collective/iconifiedcategory/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ def status(self):
if not ann['successfully_converted'] is True:
return 'conversion_error'

# when converting again (file was updated), ann['successfully_converted']
# is True but we have 'converting': True
if ann['successfully_converted'] is True and ann.get('converting', False) is True:
return 'in_progress'
return 'converted'

@property
Expand Down

0 comments on commit 2ec83ec

Please sign in to comment.