From d6006a0c92ed1d75fa123fee73e822c081439c8a Mon Sep 17 00:00:00 2001 From: Vincent BENOIT Date: Sun, 27 Nov 2022 13:50:25 +0100 Subject: [PATCH] =?UTF-8?q?infos=20suppl=C3=A9mentaires=20envoy=C3=A9es=20?= =?UTF-8?q?au=20frontend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConfBack/infos/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ConfBack/infos/views.py b/ConfBack/infos/views.py index 1a2df83..c55bbd5 100644 --- a/ConfBack/infos/views.py +++ b/ConfBack/infos/views.py @@ -19,6 +19,7 @@ from flask_jwt_extended import get_jwt_identity from flask_jwt_extended import jwt_required import json +import platform from werkzeug.exceptions import HTTPException @@ -78,4 +79,9 @@ def get_infos(): content['signal_qos'] = data['INFOS']['control']['signal_qos'] content['sim_inserted'] = data['INFOS']['control']['sim_inserted'] content['call_ready'] = data['INFOS']['control']['call_ready'] + content['system'] = {'arch':platform.architecture()[0], + 'machine':platform.machine(), + 'version':platform.release(), + 'os':platform.system()} + return jsonify(content), status.HTTP_200_OK