From 1fe59de7e43fdff836190426baefbbff823b7281 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 7 Aug 2019 10:33:27 +0200 Subject: [PATCH] Make exports possible again. The vector of entries was always empty after the refactoring. --- src/cli/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/main.cpp b/src/cli/main.cpp index 89a5b5a..43fd139 100644 --- a/src/cli/main.cpp +++ b/src/cli/main.cpp @@ -108,8 +108,9 @@ int App::main(const std::vector &args) if (_format != export_format::undefined) { - vector entries; - Search search(db.retrieve(_timespan[0], _timespan[1])); + vector entries = db.retrieve(_timespan[0], + _timespan[1]); + Search search(entries); if (!_search_tags.empty()) {