Skip to content

Commit

Permalink
log all backed up versions
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Apr 30, 2024
1 parent 3d65e37 commit ab4e59c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bioimageio_collection_backoffice/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ def backup(client: Client, destination: ZenodoHost):
"""backup all published resources to their own zenodo records"""
remote_collection = RemoteCollection(client=client)

backed_up: List[str] = []
for v in remote_collection.get_all_published_versions():
if v.info.doi is not None:
continue

backup_published_version(v, destination)
backed_up.append(f"{v.id}/{v.version}")

logger.info("backed up {}", backed_up)


def backup_published_version(
Expand Down

0 comments on commit ab4e59c

Please sign in to comment.