kopia lustrzana https://gitlab.com/tomaszg/geostat
Fix previous commits by using correct database file for OCde
rodzic
4d4e62c89e
commit
24acae7625
|
@ -79,7 +79,9 @@ int main(int argc, char** argv) {
|
|||
std::string ocro_url = "http://www.opencaching.ro/okapi/";
|
||||
std::string ocuk_url = "https://opencache.uk/okapi/";
|
||||
|
||||
const std::string Database = "ocpl.sqlite";
|
||||
const std::string Database_pl = "ocpl.sqlite";
|
||||
const std::string Database_de = "ocde.sqlite";
|
||||
const std::string Database_us = "ocus.sqlite";
|
||||
|
||||
// std::string gpx_file;
|
||||
|
||||
|
@ -244,7 +246,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
if (use_ocdb) {
|
||||
if (!ocpl_user_uuid.empty() || !ocpl_user.empty()) {
|
||||
OCdb db(Database);
|
||||
OCdb db(Database_pl);
|
||||
if (!ocpl_user.empty()) {
|
||||
Okapi OCpl(ocpl_url, ocpl_key);
|
||||
ocpl_user_uuid = OCpl.get_uuid(ocpl_user);
|
||||
|
@ -267,7 +269,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
if (!ocde_user_uuid.empty() || !ocde_user.empty()) {
|
||||
OCdb db(Database);
|
||||
OCdb db(Database_de);
|
||||
if (!ocde_user.empty()) {
|
||||
Okapi OCde(ocde_url, ocde_key);
|
||||
ocde_user_uuid = OCde.get_uuid(ocde_user);
|
||||
|
|
|
@ -77,7 +77,9 @@ int main(int argc, char** argv) {
|
|||
std::string ocro_url = "http://www.opencaching.ro/okapi/";
|
||||
std::string ocuk_url = "https://opencache.uk/okapi/";
|
||||
|
||||
const std::string Database = "ocpl.sqlite";
|
||||
const std::string Database_pl = "ocpl.sqlite";
|
||||
const std::string Database_de = "ocde.sqlite";
|
||||
const std::string Database_us = "ocus.sqlite";
|
||||
|
||||
std::string gpx_file;
|
||||
|
||||
|
@ -245,7 +247,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
if (use_ocdb) {
|
||||
if (!ocpl_user_uuid.empty() || !ocpl_user.empty()) {
|
||||
OCdb db(Database);
|
||||
OCdb db(Database_pl);
|
||||
if (!ocpl_user.empty()) {
|
||||
Okapi OCpl(ocpl_url, ocpl_key);
|
||||
ocpl_user_uuid = OCpl.get_uuid(ocpl_user);
|
||||
|
@ -262,7 +264,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
if (!ocde_user_uuid.empty() || !ocde_user.empty()) {
|
||||
OCdb db(Database);
|
||||
OCdb db(Database_de);
|
||||
if (!ocde_user.empty()) {
|
||||
Okapi OCde(ocde_url, ocde_key);
|
||||
ocde_user_uuid = OCde.get_uuid(ocde_user);
|
||||
|
|
Ładowanie…
Reference in New Issue