-
Notifications
You must be signed in to change notification settings - Fork 26
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
APIs for cve and epv reports #145
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
[test] |
|
||
if request.args.get('fromdate') is not None: | ||
for i in epv_list['objects']: | ||
if ((float(re.sub("[^0-9]", "", lower)) <= float(re.sub("[^0-9]", "", i))) & |
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.
@anuragtr would you please add some comments for this check here and why is this required?
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.
@samuzzal-choudhury this is to ensure that the report names are within the date limits user entered in the api, like for following api request " ....api/v1/epv-report/list?fromdate=2019-01-01&todate=2019-04-01 " report names need to be fetched between 'fromdate' and 'todate'
This pull request is to integrate APIs to fetch cve and epv reports and reports list.