Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

APIs for cve and epv reports #145

wants to merge 1 commit into from

Conversation

anuragtr
Copy link

This pull request is to integrate APIs to fetch cve and epv reports and reports list.

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@anuragtr
Copy link
Author

[test]

@anuragtr anuragtr changed the title [WIP] - APIs for cve and epv reports APIs for cve and epv reports Mar 20, 2019
@anuragtr anuragtr requested a review from yzainee-zz April 1, 2019 08:47

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))) &
Copy link
Contributor

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?

Copy link
Author

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants