From e2eb1c0bf2a0cd71511c6e240457278a1ecff989 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 16 Dec 2024 12:28:36 -0600 Subject: [PATCH] Try passing more optional arguments --- cpp/fetch-indexes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/fetch-indexes.cpp b/cpp/fetch-indexes.cpp index d6310e5..f03fe5d 100644 --- a/cpp/fetch-indexes.cpp +++ b/cpp/fetch-indexes.cpp @@ -218,11 +218,11 @@ int check_pending_packages(const std::string& release) { std::set current_builds; std::vector source_packages; - auto records_gen = pocket.getBuildRecords("Successfully built"); + auto records_gen = pocket.getBuildRecords("Successfully built", "", ""); std::vector records; - for (auto br : records_gen) records.push_back(br); + for (auto br : records_gen) records.emplace_back(br); - for (auto &build_record : records) { + for (auto build_record : records) { if (build_record.datebuilt < three_hours_ago) { source_packages.clear(); break;