Skip to content

add validation for page_no#610

Closed
ziadhany wants to merge 2 commits intoaboutcode-org:mainfrom
ziadhany:view_fix
Closed

add validation for page_no#610
ziadhany wants to merge 2 commits intoaboutcode-org:mainfrom
ziadhany:view_fix

Conversation

@ziadhany
Copy link
Copy Markdown
Collaborator

@ziadhany ziadhany commented Feb 5, 2022

invalid literal for int() with base 10. at packages/search?type=deb&name=&page=/
So I add the correct validation to it.

Copy link
Copy Markdown
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! well spotted!
Do you mind to add a small unit test for this?

@pombredanne
Copy link
Copy Markdown
Member

And you also want to amend your commit to add your DCO signoff.

@ziadhany
Copy link
Copy Markdown
Collaborator Author

ziadhany commented Feb 7, 2022

I couldn't find any previous test for view so a I create view_test.py .

Signed-off-by: Ziad <ziadhany2016@gmail.com>
Signed-off-by: Ziad <ziadhany2016@gmail.com>
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.

2 participants