Close #3 change flow
This commit is contained in:
@@ -195,25 +195,31 @@ int AccountFeedbacks(const std::string address, const char* bkaddress, bool isDe
|
||||
|
||||
if (statustext.compare("positive") == 0) positivefb++;
|
||||
if (statustext.compare("negative") == 0) negativefb++;
|
||||
if (fb == 1 && statustext.compare("positive") == 0) {
|
||||
|
||||
|
||||
if (fb == 0) {
|
||||
stream << "- deal: " << val["deal"] << endl;
|
||||
stream << " date: " << val["date"] << endl;
|
||||
stream << " statustext: " << val["statustext"] << endl;
|
||||
stream << " comments: " << val["comments"] << endl;
|
||||
}
|
||||
else if (fb == 2 && statustext.compare("negative") == 0) {
|
||||
stream << "- deal: " << val["deal"] << endl;
|
||||
stream << " date: " << val["date"] << endl;
|
||||
stream << " statustext: " << val["statustext"] << endl;
|
||||
stream << " comments: " << val["comments"] << endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
stream << "- deal: " << val["deal"] << endl;
|
||||
stream << " date: " << val["date"] << endl;
|
||||
stream << " statustext: " << val["statustext"] << endl;
|
||||
stream << " comments: " << val["comments"] << endl;
|
||||
else {
|
||||
if (fb == 1 && statustext.compare("positive") == 0) {
|
||||
stream << "- deal: " << val["deal"] << endl;
|
||||
stream << " date: " << val["date"] << endl;
|
||||
stream << " statustext: " << val["statustext"] << endl;
|
||||
stream << " comments: " << val["comments"] << endl;
|
||||
}
|
||||
else if (fb == 2 && statustext.compare("negative") == 0) {
|
||||
stream << "- deal: " << val["deal"] << endl;
|
||||
stream << " date: " << val["date"] << endl;
|
||||
stream << " statustext: " << val["statustext"] << endl;
|
||||
stream << " comments: " << val["comments"] << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
stream << "------------Summary--------------" << endl;
|
||||
stream << "total: " << size << endl;
|
||||
|
||||
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
||||
if (input.cmdOptionExists("-f") || input.cmdOptionExists("--feedbacks"))
|
||||
{
|
||||
int fb = 0; // all
|
||||
const string &fbp = input.getCmdOption("-f");
|
||||
const string fbp = input.getCmdOption("-f");
|
||||
if (!fbp.empty())
|
||||
{
|
||||
if (fbp.compare("p") == 0)
|
||||
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
|
||||
if (fbp.compare("n") == 0)
|
||||
fb = 2;
|
||||
}
|
||||
const string &fbps = input.getCmdOption("--feedbacks");
|
||||
const string fbps = input.getCmdOption("--feedbacks");
|
||||
if (!fbps.empty())
|
||||
{
|
||||
if (fbps.compare("p") == 0)
|
||||
|
||||
Reference in New Issue
Block a user