From 6bfac95d32926dc0d779ca5defda8a83a8ef773d Mon Sep 17 00:00:00 2001 From: willdunklin Date: Wed, 1 Nov 2023 10:41:14 -0400 Subject: [PATCH] Pass dwas progress context from wrapped importData --- import_tracker/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/import_tracker/__init__.py b/import_tracker/__init__.py index 8b5afba..6187602 100644 --- a/import_tracker/__init__.py +++ b/import_tracker/__init__.py @@ -1,6 +1,6 @@ import time -from girder import plugin +from girder import plugin, logger from girder.api.describe import autoDescribeRoute from girder.api.rest import boundHandler from girder.constants import AccessType @@ -208,7 +208,7 @@ def dwaImportDataWrapper(self, assetstore, destinationId, destinationType, filte 'lastlog': time.time(), 'logcount': 0, } - self._importData(assetstore, params={**params, '_job': jobRec}) + self._importData(assetstore, params={**params, '_job': jobRec}, progress=ctx) success = True Job().updateJob(job, '%s - Finished. Checked %d, skipped %d\n' % ( @@ -260,4 +260,4 @@ def load(self, info): if hasattr(info['apiRoot'], 'dicomweb_assetstore'): wrapDICOMImport(info['apiRoot'].dicomweb_assetstore) else: - print("dicomweb_assetstore not found, correct large_image version may not be loaded") + logger.info('dicomweb_assetstore not found')