Skip to content

Commit da407f6

Browse files
committed
Merge pull request #1158 from josenavas/fix-1151
Fixes #1151
2 parents ba2b19c + 2c03de9 commit da407f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

qiita_db/metadata_template/base_metadata_template.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,9 @@ def _add_common_extend_steps_to_queue(self, md_template, conn_handler,
707707

708708
if existing_samples:
709709
warnings.warn(
710-
"No values have been modified for samples '%s'. However, "
711-
"the following columns have been added to them: '%s'"
712-
% (", ".join(existing_samples), ", ".join(new_cols)),
710+
"No values have been modified for existing samples (%s). "
711+
"However, the following columns have been added to them: "
712+
"'%s'" % (len(existing_samples), ", ".join(new_cols)),
713713
QiitaDBWarning)
714714
# The values for the new columns are the only ones that get
715715
# added to the database. None of the existing values will be
@@ -731,8 +731,8 @@ def _add_common_extend_steps_to_queue(self, md_template, conn_handler,
731731
conn_handler.add_to_queue(queue_name, sql, values, many=True)
732732
elif existing_samples:
733733
warnings.warn(
734-
"The following samples already exist in the template and "
735-
"will be ignored: %s" % ", ".join(existing_samples),
734+
"%d samples already exist in the template and "
735+
"their values won't be modified" % len(existing_samples),
736736
QiitaDBWarning)
737737

738738
if new_samples:

0 commit comments

Comments
 (0)