kopia lustrzana https://gitlab.com/tomaszg/geostat
Fix FTF code, I don't know what changed, was cache_id really reported as string before?
rodzic
fdce7bc17c
commit
bde35a83b4
|
@ -359,7 +359,7 @@ void Okapi::get_ftf(uint uid, Caches& cc) const {
|
|||
json j = json::parse(curl_output);
|
||||
for (auto& el : j.items()) {
|
||||
if (el.value().is_null()) continue;
|
||||
uint id = std::stoi(el.value()["cache_id"].get<std::string>());
|
||||
uint id = el.value()["cache_id"];
|
||||
auto c = std::find_if(cc.begin(), cc.end(), [&](const auto& a) { return a.internal_id == id; });
|
||||
if (c != std::end(cc))
|
||||
c->ftf = 1;
|
||||
|
|
Ładowanie…
Reference in New Issue