From bde35a83b49560101e413f23db95ee01a5678440 Mon Sep 17 00:00:00 2001 From: Tomasz Golinski Date: Fri, 30 Sep 2022 21:29:08 +0200 Subject: [PATCH] Fix FTF code, I don't know what changed, was cache_id really reported as string before? --- okapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okapi.cpp b/okapi.cpp index a688584..7af3b82 100644 --- a/okapi.cpp +++ b/okapi.cpp @@ -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()); + 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;