anselal / antminer-monitor

Cryptocurrency ASIC mining hardware monitor using a simple web interface
GNU General Public License v3.0
228 stars 145 forks source link

TypeError: Object of type timedelta is not JSON serializable #169

Closed anselal closed 4 years ago

anselal commented 4 years ago

In newer versions of python the following line produces and error. To fix it convert it to string.

https://github.com/anselal/antminer-monitor/blob/6f9803e891296c0c2807125128532f4d52024c0f/antminermonitor/blueprints/asicminer/asic_antminer.py#L115