Fix FTF code, I don't know what changed, was cache_id really reported as string before?

master
Tomasz Golinski 2022-09-30 21:29:08 +02:00
rodzic fdce7bc17c
commit bde35a83b4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;