export sellers as json file

This commit is contained in:
Martin Brodbeck 2018-08-02 11:15:15 +02:00
parent b2d696ccb5
commit 045bc8dd20
8 changed files with 80 additions and 11 deletions

View file

@ -8,15 +8,19 @@ void ExcelReader::readSellersFromFile(const std::string& filename, Marketplace*
wb.load(filename);
auto ws = wb.sheet_by_index(0);
const int START_ROW = 6;
const int END_ROW = 349;
const int START_ROW = 5;
const int END_ROW = 350;
int rowCount{};
for (const auto& row : ws.rows(false)) {
// auto test = row[0].value<int>();
if (rowCount < START_ROW)
if (rowCount < START_ROW) {
rowCount++;
continue;
std::cout << row[0].to_string() << "\n";
} else if (rowCount > END_ROW) {
break;
}
std::cout << row[0].value<int>() << "\n";
rowCount++;
}
}