Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Nov 6, 2023
1 parent b3f236c commit b480943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def _update_status(msg: str) -> None:

if is_data_in_cloud:
# first we need to filter files and keep only supported ones
if set(media.keys()) - set(['image']) and db_data.storage_method == models.StorageMethodChoice.CACHE:
if any([v for k, v in media.items() if k != 'image']) and db_data.storage_method == models.StorageMethodChoice.CACHE:
# FUTURE-FIXME: This is a temporary workaround for creating tasks
# with unsupported cloud storage data (video, archive, pdf) when use_cache is enabled
db_data.storage_method = models.StorageMethodChoice.FILE_SYSTEM
Expand Down

0 comments on commit b480943

Please sign in to comment.