diff --git a/vdb/flu_upload.py b/vdb/flu_upload.py index e3c0b71..2fcea28 100644 --- a/vdb/flu_upload.py +++ b/vdb/flu_upload.py @@ -209,7 +209,7 @@ def fix_casing(self, doc): for field in ['gender', 'host', 'locus']: if field in doc and doc[field] is not None: doc[field] = self.camelcase_to_snakecase(doc[field]) - if 'accession' in doc and doc['accession'] is not None: + if doc.get('accession') is not None and not doc['accession'].startswith('EPI'): doc['accession'] = 'EPI' + doc['accession'] def fix_age(self, doc):