Skip to content
Snippets Groups Projects
Commit 132f3c37 authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

transfer EAkte object to certs

parent 267c99ad
Branches
Tags 0.40.0
No related merge requests found
......@@ -107,6 +107,7 @@ class Trans:
cert = {
"RequestId": utils.get_request_id(cal_docs=cal_docs),
"Meta": utils.get_meta(cal_docs=cal_docs),
"EAkte": utils.get_eakte(cal_docs=cal_docs),
"Titlepage": utils.get_titlepage(cal_docs=cal_docs, countries=countries, maintainers=maintainers),
"Device": utils.get_device(cal_docs=cal_docs),
"Helper":{"gas_trans":self.gas_trans, "meas_type_trans":self.meas_type_trans},
......
......@@ -43,6 +43,10 @@ def return_version(version):
def res_json(body_dict):
return jsonify(body_dict)
def get_eakte(cal_docs):
doc = cal_docs[-1]
return doc.get("Calibration", {}).get("EAkte", {})
def get_meta(cal_docs):
meta = {"skip":[],
"std":[],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment