diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-06 08:17:52 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-06 08:17:52 +0300 |
commit | 8b125e475e4f6970d1948e77fdf832c5e77f2cec (patch) | |
tree | 73e4700c710ba46c39d7f87eeb3a945978ed1a4a | |
parent | 0e15ad7cd468e7245dbd4d5f1399f23c4ae121cc (diff) |
Tune amount column find
-rw-r--r-- | RhSolutions.AddIn/Services/GuessReader.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/RhSolutions.AddIn/Services/GuessReader.cs b/RhSolutions.AddIn/Services/GuessReader.cs index a6f3264..86e7d27 100644 --- a/RhSolutions.AddIn/Services/GuessReader.cs +++ b/RhSolutions.AddIn/Services/GuessReader.cs @@ -142,15 +142,13 @@ public class GuessReader : IReader continue; } - if (++successCounter > 1) + if (++successCounter > 3) { return true; } } - - return (column.Rows.Count > 1 && successCounter > 0) - || successCounter > 1; } + return successCounter > 1; } private Dictionary<Product, double> GetDictionaryFromColumns(Range productColumn, Range amountColumn) |