diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-30 08:59:16 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-30 08:59:16 +0300 |
commit | 51636ca61af52517c9bc6d48522da9585e0659eb (patch) | |
tree | 09877289a5a1da481226f76f7b61b88054711f1b | |
parent | f1abb03ac9e059c92b12f27dcab6e588345ec206 (diff) |
Can guess single row with string headers
-rw-r--r-- | RhSolutions.AddIn/Services/GuessReader.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/RhSolutions.AddIn/Services/GuessReader.cs b/RhSolutions.AddIn/Services/GuessReader.cs index 09bb5a0..c3f36e4 100644 --- a/RhSolutions.AddIn/Services/GuessReader.cs +++ b/RhSolutions.AddIn/Services/GuessReader.cs @@ -151,7 +151,9 @@ public class GuessReader : IReader } } - return successCounter > 1; + return (column.Rows.Count > 1 && successCounter > 0) + || successCounter > 1; + } } private Dictionary<Product, double> GetDictionaryFromColumns(Range productColumn, Range amountColumn) |