There is a bug on pagure that in a project, if there are no issues , then it will show zero total pages i.e. 'page 1 of 0'.
There are similar bugs in forks list page and pull requests page.
1 new commit added
2 new commits added
By moving that line above the if(requests_cnt> 0) (you could drop the () btw), then you reduce the diff to two lines :)
if(requests_cnt> 0)
()
length wise are we good? (I try to stick to the 80 chars limit)
hm, looks like jenkins is not happy, are the tests passing for you locally?
yes, code is working on my local machine
I made the length wise changes and replaced if condition with one liner if condition
Thanks! :)
Pull-Request has been merged by pingou
There is a bug on pagure that in a project, if there are no issues , then it will show zero total pages i.e. 'page 1 of 0'.
There are similar bugs in forks list page and pull requests page.