fixed minuser calculations

This commit is contained in:
Sarah Faey 2023-01-14 17:37:08 +01:00
parent 715b14ecc5
commit 6d6e720695
3 changed files with 8 additions and 8 deletions

View file

@ -20,6 +20,8 @@ namespace Lieb.Models.GuildWars2.Raid
public ICollection<RaidSignUp> SignUps { get; set; } = new HashSet<RaidSignUp>();
public bool HasEnoughUsers {get{ return SignUps.Where(s => s.SignUpType != SignUpType.SignedOff && s.SignUpType != SignUpType.Flex).Count() >= this.MinUsers;}}
public Raid() { }
public Raid(RaidTemplate template) : base(template, template.TimeZone, true)