Protect OCpl only features like FTF and trails with if, so they don't appear for other users

master
Tomasz Golinski 2022-07-14 14:27:22 +02:00
rodzic 91d250cb3a
commit 277cdc058e
1 zmienionych plików z 57 dodań i 56 usunięć

Wyświetl plik

@ -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) {