Some formatting and clang-format

sql-rework
Tomasz Golinski 2020-01-04 19:27:04 +01:00
rodzic e3087f3695
commit 958834553c
3 zmienionych plików z 14 dodań i 11 usunięć

Wyświetl plik

@ -144,25 +144,30 @@ int main(int argc, char** argv) {
bool use_oc = 0; bool use_oc = 0;
bool use_ocpl_db = 0; bool use_ocpl_db = 0;
bool get_not_found = 0; bool get_not_found = 0;
std::string ocpl_user; std::string ocpl_user;
std::string ocde_user; std::string ocde_user;
std::string ocus_user; std::string ocus_user;
std::string ocnl_user; std::string ocnl_user;
std::string ocro_user; std::string ocro_user;
std::string ocuk_user; std::string ocuk_user;
std::string ocpl_user_profile; std::string ocpl_user_profile;
std::string ocde_user_profile; std::string ocde_user_profile;
std::string ocus_user_profile; std::string ocus_user_profile;
std::string ocnl_user_profile; std::string ocnl_user_profile;
std::string ocro_user_profile; std::string ocro_user_profile;
std::string ocuk_user_profile; std::string ocuk_user_profile;
std::string ocpl_url = "https://opencaching.pl/okapi/"; std::string ocpl_url = "https://opencaching.pl/okapi/";
std::string ocde_url = "https://www.opencaching.de/okapi/"; std::string ocde_url = "https://www.opencaching.de/okapi/";
std::string ocus_url = "http://www.opencaching.us/okapi/"; std::string ocus_url = "http://www.opencaching.us/okapi/";
std::string ocnl_url = "http://www.opencaching.nl/okapi/"; std::string ocnl_url = "http://www.opencaching.nl/okapi/";
std::string ocro_url = "http://www.opencaching.ro/okapi/"; std::string ocro_url = "http://www.opencaching.ro/okapi/";
std::string ocuk_url = "https://opencache.uk/okapi/"; std::string ocuk_url = "https://opencache.uk/okapi/";
const std::string Database = "ocpl.sqlite"; const std::string Database = "ocpl.sqlite";
std::string gpx_file; std::string gpx_file;
#include "config_user.h" #include "config_user.h"
@ -520,7 +525,6 @@ int main(int argc, char** argv) {
std::cout << "<div class=\"basic_stats\">\n"; std::cout << "<div class=\"basic_stats\">\n";
std::cout << "Total <span class=\"value\">" << n << "</span> combinations found out of 81 (" << std::setprecision(3) << n / 0.81 << "%).\n"; std::cout << "Total <span class=\"value\">" << n << "</span> combinations found out of 81 (" << std::setprecision(3) << n / 0.81 << "%).\n";
std::cout << "</div>\n"; std::cout << "</div>\n";
} }
if (show_html) { if (show_html) {

Wyświetl plik

@ -113,7 +113,6 @@ Caches Okapi::get_caches(std::vector<std::pair<std::string, std::tm>> codes) {
codes_list.reserve(500 * 7); codes_list.reserve(500 * 7);
k = 0; k = 0;
// int n = (codes.size() > 500) ? 500 : cc.codes();
while (n < codes.size() && k < 500) { while (n < codes.size() && k < 500) {
codes_list += codes.at(n).first; codes_list += codes.at(n).first;
codes_list += '|'; codes_list += '|';