Commit 400ba5bc authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Export None as "-"

parent a264c627
......@@ -24,4 +24,4 @@ class Command(BaseCommand):
sys.stderr.flush()
continue
for tsd in ts.timeseriesdata_set.all().order_by("timestamp"):
print "%d,%f"%(tsd.timestamp,tsd.value)
print "%d,%s"%(tsd.timestamp,"%f"%tsd.value if tsd.value is not None else "-")
Supports Markdown
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