Skip to content

Commit

Permalink
Update mm-decode-history-page.py
Browse files Browse the repository at this point in the history
fix python induced json parsing errors (datetime) on certain records in pump history - see issue in bewest/decocare
  • Loading branch information
kenstack authored Aug 22, 2016
1 parent 1713f27 commit 8f99b0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/mm-decode-history-page.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# from datetime import datetime
# from scapy.all import *
import json
import datetime
json.JSONEncoder.default = lambda self,obj: (obj.isoformat() if isinstance(obj, datetime.datetime) else None)

from decocare import lib, history, models

Expand Down

0 comments on commit 8f99b0c

Please sign in to comment.