diff options
Diffstat (limited to 'server/src/macrotool/export.cc')
-rw-r--r-- | server/src/macrotool/export.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/src/macrotool/export.cc b/server/src/macrotool/export.cc index c9dcbd1..d7f3729 100644 --- a/server/src/macrotool/export.cc +++ b/server/src/macrotool/export.cc @@ -62,7 +62,7 @@ public: pos["patientid"] = 1; pos["time"] = 2; pos["template"] = 3; - + /* printf("%s\n", n.c_str()); size_t idx = 4; @@ -74,7 +74,7 @@ public: i++; } printf("\n"); - + */ output_header(); } @@ -181,7 +181,7 @@ static void export_prefix(std::string prefix) } templates_t t = scanfieldnames(filter); - + /* templates_t::iterator ti = t.begin(); while(ti != t.end()) { printf("%s\n", ti->first.c_str()); @@ -192,7 +192,7 @@ static void export_prefix(std::string prefix) } ti++; } - + */ { pqxx::result result = @@ -222,7 +222,8 @@ static void export_prefix(std::string prefix) timestr = timestr.substr(0, timestr.size() - 1); files[templ]->addcell("time", timestr.c_str()); - printf("%s %s %s\n", timestamp.c_str(), patientid.c_str(), templ.c_str()); + DEBUG(export, "%s %s %s\n", + timestamp.c_str(), patientid.c_str(), templ.c_str()); { pqxx::result result = |