Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_pdf_report
Commits
a42d391f
Commit
a42d391f
authored
May 10, 2019
by
Anna-Mariya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Last change
parent
f7b9bdd8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
code_generation.py
src/latex_code_generation/code_generation.py
+2
-2
pdf_generator.py
src/pdf_generator.py
+1
-0
No files found.
src/latex_code_generation/code_generation.py
View file @
a42d391f
...
...
@@ -53,7 +53,6 @@ def generate_main_code(firmware_analyses, firmware_meta_data, jinja_environment)
return
template
.
render
(
analysis
=
firmware_analyses
,
meta_data
=
firmware_meta_data
)
def
generate_analysis_codes
(
environment
,
analysis
):
return
[(
'{}.tex'
.
format
(
analysis_plugin
),
_render_analysis_result
(
analysis
[
analysis_plugin
],
environment
,
analysis_plugin
))
for
analysis_plugin
in
analysis
]
...
...
@@ -90,7 +89,8 @@ def execute_pdflatex(tmp_dir):
os
.
chdir
(
current_dir
)
def
generate_pdf_report
(
firmware_uid
=
"bab8d95fc42176abc9126393b6035e4012ebccc82c91e521b91d3bcba4832756_3801088"
):
def
generate_pdf_report
(
firmware_uid
=
"bab8d95fc42176abc9126393b6035e4012ebccc82c91e521b91d3bcba4832756_3801088"
""
):
request_url
=
create_request_url
(
firmware_uid
)
firmware_analyses
,
firmware_meta_data
=
request_firmware_data
(
request_url
)
...
...
src/pdf_generator.py
View file @
a42d391f
...
...
@@ -35,6 +35,7 @@ def _setup_argparser():
parser
.
add_argument
(
'-L'
,
'--log_level'
,
help
=
'define the log level [DEBUG,INFO,WARNING,ERROR]'
)
parser
.
add_argument
(
'-d'
,
'--debug'
,
action
=
'store_true'
,
default
=
False
,
help
=
'print debug messages'
)
parser
.
add_argument
(
'-C'
,
'--config_file'
,
help
=
'set path to config File'
,
default
=
STANDARD_CONF_FILE
)
parser
.
add_argument
(
'-u'
,
'--uid'
,
help
=
'firmware analysis UID'
,
dest
=
"UID"
)
return
parser
.
parse_args
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment