diff --git a/ennstatus/api/views.py b/ennstatus/api/views.py --- a/ennstatus/api/views.py +++ b/ennstatus/api/views.py @@ -1,5 +1,4 @@ import ipaddress -import json from datetime import datetime @@ -70,7 +69,7 @@ def update(): ) try: - server = Server.from_json(json.dumps(data)) + server = Server.from_dict(data) except Exception as e: current_app.logger.warning(' '.join([str(e), str(data)])) return str(e), 409, {'Content-Type': 'text/plain'}