kopia lustrzana https://gitlab.com/tomaszg/geostat
CPPCHECK: There is no such thing as 2
rodzic
2ab560f172
commit
17e8a93b5b
4
ocdb.cpp
4
ocdb.cpp
|
@ -169,7 +169,7 @@ bool OCdb::update_cache(const json& j) {
|
|||
fields["owner"] = j["data"]["owner"]["uuid"].get<std::string>();
|
||||
|
||||
if (fields.empty() && fields2.empty())
|
||||
return 2;
|
||||
return 1;
|
||||
|
||||
std::string sql = "INSERT INTO caches (code,";
|
||||
for (auto& i : fields)
|
||||
|
@ -230,7 +230,7 @@ bool OCdb::update_log(const json& j) {
|
|||
fields["type"] = j["data"]["type"].get<std::string>();
|
||||
|
||||
if (fields.empty())
|
||||
return 2;
|
||||
return 1;
|
||||
|
||||
std::string sql = "INSERT INTO logs (uuid,";
|
||||
for (auto& i : fields)
|
||||
|
|
Ładowanie…
Reference in New Issue