From be8829bbcdb2df844b9ca49a55a792b248b2b8e5 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Sun, 8 Jan 2023 17:10:18 -0700 Subject: [PATCH] Bug --- Map/Models/MapLogic.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Map/Models/MapLogic.cs b/Map/Models/MapLogic.cs index 09e6bad..3974602 100644 --- a/Map/Models/MapLogic.cs +++ b/Map/Models/MapLogic.cs @@ -823,9 +823,11 @@ public class MapLogic : Shared.Models.Methods.IMapLogic directoryName = Path.GetDirectoryName(mapping.MappingFromItem.RelativePath); if (directoryName is null) throw new NotSupportedException(); + if (mapping.MappingFromPerson is null) + continue; if (mapping.MappingFromItem.ResizedFileHolder.DirectoryName is null || !mapping.MappingFromItem.ResizedFileHolder.Exists) continue; - if (mapping.By is null or Shared.Models.Stateless.IMapLogic.Sorting || mapping.MappingFromPerson?.ApproximateYears is null) + if (mapping.By is null or Shared.Models.Stateless.IMapLogic.Sorting) continue; if (string.IsNullOrEmpty(mapping.MappingFromPerson.SegmentB)) throw new NotSupportedException(); @@ -839,7 +841,7 @@ public class MapLogic : Shared.Models.Methods.IMapLogic personKey = mapping.MappingFromPerson.PersonBirthday.Value.Ticks; if (!personKeyToCount.ContainsKey(personKey)) personKeyToCount.Add(personKey, 0); - if (personKeyToCount[personKey] > 1) + if (personKeyToCount[personKey] > _Configuration.PersonCharactersCopyCount) continue; if (!_PersonKeyToPersonContainer.TryGetValue(personKey, out personContainer)) continue;