Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/a70bf8f46c76d74c9dfdf908c53bd9955ca0a35d
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
3 additions and
1 deletions
@ -83,6 +83,8 @@ namespace Ombi.Helpers.Tests
. SetName ( "PaginationPosition_Load_SecondHalf_FirstPage_FirstHalf_SecondPage" ) ;
yield return new TestCaseData ( 0 , 40 , 20 , new List < MultiplePagesTestData > { new MultiplePagesTestData ( 1 , 20 , 0 ) , new MultiplePagesTestData ( 2 , 20 , 0 ) } )
. SetName ( "PaginationPosition_Load_Full_First_And_SecondPage" ) ;
yield return new TestCaseData ( 40 , 40 , 20 , new List < MultiplePagesTestData > { new MultiplePagesTestData ( 3 , 20 , 0 ) , new MultiplePagesTestData ( 4 , 20 , 0 ) } )
. SetName ( "PaginationPosition_Load_Full_Third_And_ForthPage" ) ;
yield return new TestCaseData ( 35 , 15 , 20 , new List < MultiplePagesTestData > { new MultiplePagesTestData ( 2 , 5 , 15 ) , new MultiplePagesTestData ( 3 , 10 , 0 ) } )
. SetName ( "PaginationPosition_Load_EndSecondPage_Beginning_ThirdPage" ) ;
yield return new TestCaseData ( 18 , 22 , 20 , new List < MultiplePagesTestData > { new MultiplePagesTestData ( 1 , 2 , 18 ) , new MultiplePagesTestData ( 2 , 20 , 0 ) } )
@ -17,7 +17,7 @@ namespace Ombi.Helpers
var lastPage = lastItemIndex / maxItemsPerPage + 1 ;
var stopPos = lastItemIndex % maxItemsPerPage + 1 ;
while ( currentlyLoaded > maxItemsPerPage )
while ( currentlyLoaded > = maxItemsPerPage )
{
currentlyLoaded - = maxItemsPerPage ;
}