Skip to content
Snippets Groups Projects
Commit 473c8453 authored by Brian Moe's avatar Brian Moe
Browse files

Bug. Treated 0 as None.

parent 2f3baed0
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ special_floats = [str(pos_inf), str(neg_inf), str(nan)]
@register.filter("scientific")
def scientific(text):
if not text:
if text is None:
return mark_safe("")
try:
out = "%0.3e" % text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment