-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add endpoint for scanreport model description #37
Conversation
|
||
def __as_md(self, previous_key, data): | ||
def append(value): | ||
return isinstance(value, str) or isinstance(value, int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have been
return isinstance(value, (str, int))
@@ -34,6 +34,7 @@ pytest-django = "^3.9.0" | |||
weasyprint = "^51" | |||
matplotlib = "^3.3.1" | |||
pandas = "^1.1.2" | |||
rope = "^0.17.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is rope a direct dependency now or should it still be a dev dependency?
@@ -135,3 +135,163 @@ class Report: | |||
vulnerability_overview: VulnerabilityOverview | |||
host_overviews: List[HostOverview] | |||
results: Results | |||
|
|||
|
|||
def descripe(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this is a typo and the function should be named describe
?
What:
Creates a new endpoints to get a markdown table of scanreport model description.
Why:
To have an easy way to include the data description within a confluence page.
How:
Checklist: