From c7a1a656e75ad63501d81bae167494ed7ceea01a Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Tue, 8 Feb 2022 15:20:40 +0100 Subject: [PATCH] show duplicated host in order as they are not overwritten anymore --- src/viralhostrange/viralhostrangedb/business_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viralhostrange/viralhostrangedb/business_process.py b/src/viralhostrange/viralhostrangedb/business_process.py index c32a415f..bbc93df2 100755 --- a/src/viralhostrange/viralhostrangedb/business_process.py +++ b/src/viralhostrange/viralhostrangedb/business_process.py @@ -360,7 +360,7 @@ def __parse_file(file, importation_observer: ImportationObserver = None, sheet_n start_at = id_col - 1 + start_at header_set = set(header[1:]) if importation_observer: - for header_col, h in reversed(list(enumerate(header[1:]))): + for header_col, h in enumerate(header[1:]): try: header_set.remove(h) except KeyError: -- GitLab