forked from andyleung/srx-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_report.py
executable file
·25 lines (20 loc) · 1.26 KB
/
build_report.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/python
from subprocess import call
def build_report():
args = ("reportPDF","http://127.0.0.1:5000/http_apps")
LINK = "http://localhost:5000/"
call(["/usr/local/bin/wkhtmltopdf",LINK+"report_apps","report/all_apps.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"http_apps","report/http_apps.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"report_groups","report/report_groups.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"app_groups","report/app_groups.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"app_bar","report/app_bar.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"app_pie","report/app_pie.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"app_bubble","report/app_bubble.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"char_bar","report/char_bar.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"char_pie","report/char_pie.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"category_bar","report/category_bar.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"category_pie","report/category_pie.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"subcategory_bar","report/subcategory_bar.pdf"])
call(["/usr/local/bin/wkhtmltopdf",LINK+"subcategory_pie","report/subcategory_pie.pdf"])
if __name__ == '__main__':
build_report()