From 473c84535e975b93f32de981920ab1b15d085dd6 Mon Sep 17 00:00:00 2001
From: Brian Moe <brian.moe@ligo.org>
Date: Mon, 23 Jan 2012 17:26:11 -0600
Subject: [PATCH] Bug. Treated 0 as None.

---
 gracedb/templatetags/scientific.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gracedb/templatetags/scientific.py b/gracedb/templatetags/scientific.py
index 39c44578b..0cdfafad2 100644
--- a/gracedb/templatetags/scientific.py
+++ b/gracedb/templatetags/scientific.py
@@ -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
-- 
GitLab