Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/29063894fedeeaefebc6579524a01b508949768b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
5 additions and
5 deletions
@ -494,7 +494,7 @@ namespace Ombi.Core.Tests.Engine
MovieRequestLimitType = RequestLimitType . Month ,
Id = "id1"
} ;
var today = DateTime . UtcNow ;
var today = new DateTime ( 2022 , 2 , 2 , 13 , 0 , 0 ) ;
var firstDayOfMonth = new DateTime ( today . Year , today . Month , 1 ) ;
var log = new List < RequestLog >
{
@ -494,7 +494,7 @@ namespace Ombi.Core.Tests.Engine
MusicRequestLimitType = RequestLimitType . Month ,
Id = "id1"
} ;
var today = DateTime . UtcNow ;
var today = new DateTime ( 2022 , 2 , 2 , 13 , 0 , 0 ) ;
var firstDayOfMonth = new DateTime ( today . Year , today . Month , 1 ) ;
var log = new List < RequestLog >
{
@ -82,7 +82,7 @@ namespace Ombi.Core.Services
}
return await CalculateBasicRemaingRequests ( user, limit, user . MovieRequestLimitType ? ? RequestLimitType . Day , log , now ) ;
return await CalculateBasicRemaingRequests ( limit, user . MovieRequestLimitType ? ? RequestLimitType . Day , log , now ) ;
}
public async Task < RequestQuotaCountModel > GetRemainingMusicRequests ( OmbiUser user , DateTime now = default )
@ -136,7 +136,7 @@ namespace Ombi.Core.Services
} ;
}
return await CalculateBasicRemaingRequests ( user, limit, user . MusicRequestLimitType ? ? RequestLimitType . Day , log , now ) ;
return await CalculateBasicRemaingRequests ( limit, user . MusicRequestLimitType ? ? RequestLimitType . Day , log , now ) ;
}
private async Task < OmbiUser > GetUser ( )
@ -145,7 +145,7 @@ namespace Ombi.Core.Services
return await _userManager . Users . FirstOrDefaultAsync ( x = > x . NormalizedUserName = = username ) ;
}
private static async Task < RequestQuotaCountModel > CalculateBasicRemaingRequests ( OmbiUser user , int limit , RequestLimitType type , IQueryable < RequestLog > log , DateTime now )
private static async Task < RequestQuotaCountModel > CalculateBasicRemaingRequests ( int limit , RequestLimitType type , IQueryable < RequestLog > log , DateTime now )
{
int count = 0 ;
DateTime oldestRequestedAt = DateTime . Now ;