mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
fix #1745
This commit is contained in:
parent
82729cee41
commit
9b9ef0e29f
1 changed files with 2 additions and 2 deletions
|
@ -160,13 +160,13 @@ namespace Ombi.Core.Senders
|
|||
// Montitor the correct seasons,
|
||||
// If we have that season in the model then it's monitored!
|
||||
var seasonsToAdd = new List<Season>();
|
||||
for (var i = 1; i < model.ParentRequest.TotalSeasons + 1; i++)
|
||||
for (var i = 0; i < model.ParentRequest.TotalSeasons + 1; i++)
|
||||
{
|
||||
var index = i;
|
||||
var season = new Season
|
||||
{
|
||||
seasonNumber = i,
|
||||
monitored = model.SeasonRequests.Any(x => x.SeasonNumber == index)
|
||||
monitored = model.SeasonRequests.Any(x => x.SeasonNumber == index && x.SeasonNumber != 0)
|
||||
};
|
||||
seasonsToAdd.Add(season);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue