Commit b8403044 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Adding simplejson package to requirements

simplejson package is used to properly serialize Decimal objects
(like gpstime) when converting from a dictionary to a json.
parent 3adf8911
import simplejson
import os
import sys
from subprocess import Popen, PIPE, STDOUT
......@@ -322,7 +323,7 @@ def issueXMPPAlert(event, location, alert_type="new", description="", serialized
}
if serialized_object:
lva_data['object'] = serialized_object
msg = json.dumps(lva_data)
msg = simplejson.dumps(lva_data)
log.debug("issueXMPPAlert: writing message %s" % msg)
if settings.USE_LVALERT_OVERSEER:
......
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