re-adding END_ROW to prevent crash (?!)
This commit is contained in:
parent
fb98c3786e
commit
6b25c7c9cf
1 changed files with 4 additions and 0 deletions
|
@ -23,13 +23,17 @@ std::size_t ExcelReader::readSellersFromFile(const fs::path& filePath, Marketpla
|
||||||
auto ws = wb.sheet_by_index(0);
|
auto ws = wb.sheet_by_index(0);
|
||||||
|
|
||||||
const int START_ROW = 5;
|
const int START_ROW = 5;
|
||||||
|
const int END_ROW = 503;
|
||||||
|
|
||||||
int rowCount{};
|
int rowCount{};
|
||||||
for (const auto& row : ws.rows(false)) {
|
for (const auto& row : ws.rows(false)) {
|
||||||
if (rowCount < START_ROW) {
|
if (rowCount < START_ROW) {
|
||||||
++rowCount;
|
++rowCount;
|
||||||
continue;
|
continue;
|
||||||
|
} else if (rowCount > END_ROW) {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (row[2].value<std::string>().empty() && row[3].value<std::string>().empty()) {
|
if (row[2].value<std::string>().empty() && row[3].value<std::string>().empty()) {
|
||||||
++rowCount;
|
++rowCount;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue