Commit e2de99bb authored by delanoe's avatar delanoe

[FIX] Some cases where divided by zero.

parent c82b46db
......@@ -94,7 +94,7 @@ def do_maplist(corpus,
new_hyperdata = { 'corpus': corpus.id,
'limit' : limit,
'monograms_part' : monograms_part,
'monograms_result' : obtained_mono/obtained_total
'monograms_result' : obtained_mono/obtained_total if obtained_total != 0 else obtained_mono
}
if overwrite_id:
# overwrite pre-existing node
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment