mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
lf_report.py : allow link name passed in with PDF link
lf_qa.py : updated based on lf_report.py Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -296,12 +296,12 @@ class lf_report():
|
||||
pdf_link_path = "{}/{}-{}".format(self.path_date_time,self.date,self.output_pdf)
|
||||
return pdf_link_path
|
||||
|
||||
def build_pdf_link(self,_pdf_link_path):
|
||||
def build_pdf_link(self,_pdf_link,_pdf_link_path):
|
||||
self.pdf_link_html = """
|
||||
<!-- pdf link -->
|
||||
<a href={pdf_link_path}>PDF_Report</a>
|
||||
<a href={pdf_link}>{pdf_link_path}</a>
|
||||
<br>
|
||||
""".format(pdf_link_path=_pdf_link_path)
|
||||
""".format(pdf_link=_pdf_link,pdf_link_path=_pdf_link_path)
|
||||
self.html += self.pdf_link_html
|
||||
|
||||
def build_link(self,_link,_link_name):
|
||||
|
||||
@@ -365,7 +365,7 @@ Example: kpi_csv_sq.py --store --png --show --path <path to read kpi.csv> (read
|
||||
report.build_objective()
|
||||
pdf_link_path = report.get_pdf_path()
|
||||
pdf_link_path = __server + pdf_link_path.replace('/home/lanforge/','')
|
||||
report.build_pdf_link(pdf_link_path)
|
||||
report.build_pdf_link("PDF_Report",pdf_link_path)
|
||||
|
||||
report_path = report.get_path()
|
||||
report_path = __server + report_path.replace('/home/lanforge/','')
|
||||
|
||||
Reference in New Issue
Block a user