Skip to content
Snippets Groups Projects
Commit e8789e10 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

create markdown \n

parent 26ecb285
No related branches found
No related tags found
1 merge request!845[JF][pnCCD][ePix100] Feat: new method to display CCV metadata in reports
...@@ -717,13 +717,13 @@ class CalibrationData: ...@@ -717,13 +717,13 @@ class CalibrationData:
metadata = self.metadata() metadata = self.metadata()
for mod, mod_md in metadata.items(): for mod, mod_md in metadata.items():
# Add module name. # Add module name.
markdown_text += f"\n{mod}({mod_to_pdu[mod]}):\n" markdown_text += f"{mod}({mod_to_pdu[mod]}):<br />"
# Add calibration constant name with link to CalCat # Add calibration constant name with link to CalCat
# and add creation time. # and add creation time.
for cname, c_mdata in mod_md.items(): for cname, c_mdata in mod_md.items():
markdown_text += ( markdown_text += (
f"- [{cname}]({ccvs_url}/{c_mdata['ccv_id']}): " f"- [{cname}]({ccvs_url}/{c_mdata['ccv_id']}): "
f"{c_mdata['begin_validity_at']}\n") f"{c_mdata['begin_validity_at']}<br />")
return markdown_text return markdown_text
def _build_condition(self, parameters): def _build_condition(self, parameters):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment