Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
ac23cefd
Commit
ac23cefd
authored
Mar 12, 2020
by
Bryan BRANCOTTE
Browse files
resilience to a blank space in the magic cell of top left
parent
91a859e9
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/test_data/space_top_left.xlsx
0 → 100644
View file @
ac23cefd
File added
src/viralhostrange/test_data/space_top_left.xlsx.json
0 → 100644
View file @
ac23cefd
{
"C1"
:
{
"r1"
:
"0"
,
"r2"
:
"0"
,
"r3"
:
"0"
},
"C2"
:
{
"r1"
:
"1"
,
"r2"
:
"1"
,
"r3"
:
"2"
},
"C3"
:
{
"r1"
:
"0"
,
"r2"
:
"2"
,
"r3"
:
"0"
},
"C4"
:
{
"r1"
:
"2"
,
"r2"
:
"0"
,
"r3"
:
"0"
}
}
\ No newline at end of file
src/viralhostrange/viralhostrangedb/business_process.py
View file @
ac23cefd
...
...
@@ -163,6 +163,7 @@ def parse_file(file, importation_observer: ImportationObserver = None):
virus
=
None
virus_identifier
=
None
for
id_col
,
cell
in
enumerate
(
sub_row
):
cell
=
cell
.
strip
()
if
header
is
None
or
not
has_seen_data
and
id_col
==
1
and
sub_row
[
0
]
==
""
:
if
cell
is
not
""
and
not
cell
.
startswith
(
"Unnamed: "
):
header
=
row
...
...
Bryan BRANCOTTE
@bbrancot
mentioned in issue
#164 (closed)
·
Mar 12, 2020
mentioned in issue
#164 (closed)
mentioned in issue #164
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment