kopia lustrzana https://gitlab.com/tomaszg/geostat
Protect OCpl only features like FTF and trails with if, so they don't appear for other users
rodzic
91d250cb3a
commit
277cdc058e
|
@ -914,6 +914,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!ocpl_user_uuid.empty()) {
|
||||
n = 1;
|
||||
|
||||
std::cout << "<h2>Power trails (by completion percentage)</h2>\n";
|
||||
|
@ -974,9 +975,9 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
std::cout << "</table>\n";
|
||||
std::cout << "<div class=\"basic_stats\">\n";
|
||||
// std::cout << "Number of FTFs: <span class=\"value\">" << std::count_if(cc.begin(), cc.end(), [&](const auto& a) { return a.ftf; }) << "</span><br>\n";
|
||||
std::cout << "Number of FTFs: <span class=\"value\">" << caches_ftf.size() << "</span><br>\n";
|
||||
std::cout << "</div>\n";
|
||||
}
|
||||
} // end of main if
|
||||
|
||||
if (get_not_found) {
|
||||
|
|
Ładowanie…
Reference in New Issue