diff --git a/bedboss/bbuploader/main.py b/bedboss/bbuploader/main.py index 2033b56..362d96d 100644 --- a/bedboss/bbuploader/main.py +++ b/bedboss/bbuploader/main.py @@ -500,6 +500,15 @@ def _upload_gse( ) sa_session.add(sample_status) sa_session.commit() + else: + if sample_status.status == STATUS.SUCCESS and not overwrite: + _LOGGER.info( + f"Skipping: '{required_metadata.sample_name}' - already processed" + ) + uploaded_files.append(sample_status.genome) + project_status.number_of_processed += 1 + continue + sample_status.genome = required_metadata.ref_genome # to upload files only with a specific genome diff --git a/bedboss/utils.py b/bedboss/utils.py index 79d4b9f..4fe6c5b 100644 --- a/bedboss/utils.py +++ b/bedboss/utils.py @@ -209,8 +209,8 @@ def calculate_time(func): @wraps(func) def wrapper(*args, **kwargs): - print(f"--> Arguments: {args}") - print(f"--> Keyword arguments: {kwargs}") + # print(f"--> Arguments: {args}") + # print(f"--> Keyword arguments: {kwargs}") start_time = time.time() result = func(*args, **kwargs)