Fixed missing error message

This commit is contained in:
Arthur Matta 2022-05-16 09:48:04 +01:00
parent 332876f58c
commit 192bf4a621
2 changed files with 6 additions and 1 deletions

View File

@ -355,6 +355,11 @@ class ErrorMessage():
msg += "If the those values are Pubmed ids or DOIs, please ignore this messsage" msg += "If the those values are Pubmed ids or DOIs, please ignore this messsage"
return msg return msg
def STD46(self):
msg = f"If date of collection/isolation/deposit/inclusion in the catalog is after 2014," \
f" the value of Geographic Origin must be provided. It is missing for strain {self.pk}."
return msg
""" """
Genomic Information Error Codes Genomic Information Error Codes

View File

@ -405,7 +405,7 @@ SHEETS_SCHEMA = {
'id_field': 'Accession number', 'id_field': 'Accession number',
VALIDATION: {TYPE: MANDATORY, ERROR_CODE: "EFS05"}, VALIDATION: {TYPE: MANDATORY, ERROR_CODE: "EFS05"},
ROW_VALIDATION: [ ROW_VALIDATION: [
{TYPE: NAGOYA, ERROR_CODE: "STRXXX"}, {TYPE: NAGOYA, ERROR_CODE: "STD46"},
], ],
COLUMNS: STRAIN_FIELDS, COLUMNS: STRAIN_FIELDS,
}, },