import from excel until EOF

This commit is contained in:
Martin Brodbeck 2019-07-12 15:53:19 +02:00
parent e8ce908a7f
commit 9b7f5568d7
1 changed files with 2 additions and 3 deletions

View File

@ -23,16 +23,15 @@ 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 = 350;
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) { } /*else if (rowCount > END_ROW) {
break; 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;