Skip to content

Commit

Permalink
Merge pull request KomodoPlatform#1689 from KomodoPlatform/csv_spaces
Browse files Browse the repository at this point in the history
remove header spaces for csv exports
  • Loading branch information
Milerius authored Mar 27, 2022
2 parents 8869d04 + c716b01 commit 51bb996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/atomicdex/models/qt.orders.proxy.model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ namespace atomic_dex
SPDLOG_INFO("exporting csv with path: {}", csv_path.string());
std::ofstream ofs(csv_path.string(), std::ios::out | std::ios::trunc);
int nb_items = this->rowCount();
ofs << "Date, BaseCoin, BaseAmount, Status, RelCoin, RelAmount, UUID, ErrorState" << std::endl;
ofs << "Date,BaseCoin,BaseAmount,Status,RelCoin,RelAmount,UUID,ErrorState" << std::endl;
for (int cur_idx = 0; cur_idx < nb_items; ++cur_idx)
{
QModelIndex idx = this->index(cur_idx, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/core/atomicdex/services/exporter/exporter.service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace atomic_dex
ofs.setFileName(std_path_to_qstring(csv_path));
ofs.open(QIODevice::Text | QIODevice::WriteOnly | QIODevice::Truncate);
std::stringstream ss;
ss << "Date, BaseCoin, BaseAmount, Status, RelCoin, RelAmount, UUID, ErrorState" << std::endl;
ss << "Date,BaseCoin,BaseAmount,Status,RelCoin,RelAmount,UUID,ErrorState" << std::endl;
for (auto&& cur_swap: result.swaps)
{
ss << cur_swap.human_date.toStdString() << ",";
Expand Down

0 comments on commit 51bb996

Please sign in to comment.