Skip to content

Commit 4719163

Browse files
author
JackBoosY
committed
fix bug
1 parent 175c6bc commit 4719163

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/mainFrame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void TestFrame::OnGetData()
187187
else
188188
cdtList.push_back("sort:created-asc");
189189

190-
if (!gb.GetData(SearchCondition{ search_type, search_type_message }, cdtList, szFilePath, 50))
190+
if (gb.GetData(SearchCondition{ search_type, search_type_message }, cdtList, szFilePath, 50))
191191
{
192192
::MessageBox(NULL, _T("Download data success!"), _T(""), NULL);
193193
}

grabber/excelExecuter.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bool excelExecuter::WriteToFile(const char* filePath, const IteamDataList& dataL
4141
std::string str_tmp = "";
4242

4343
xlsxiowriter writer = nullptr;
44-
if ((writer = xlsxiowrite_open(filePath, DEFAULT_LABEL_NAME)) == nullptr)
44+
if ((writer = xlsxiowrite_open(filename.c_str(), DEFAULT_LABEL_NAME)) == nullptr)
4545
{
4646
return false;
4747
}
@@ -80,7 +80,6 @@ bool excelExecuter::WriteToFile(const char* filePath, const IteamDataList& dataL
8080
}
8181
xlsxiowrite_next_row(writer);
8282
}
83-
xlsxiowrite_next_row(writer);
8483

8584
xlsxiowrite_close(writer);
8685

0 commit comments

Comments
 (0)