From 8f75b5fb1baceff7290952b2eaf88cd31b64802f Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Thu, 30 Nov 2023 10:41:12 +0100 Subject: [PATCH] [resotocore][fix] History should accept count flag (#1843) --- resotocore/resotocore/cli/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resotocore/resotocore/cli/command.py b/resotocore/resotocore/cli/command.py index 6b1ab1313e..87790ed0a1 100644 --- a/resotocore/resotocore/cli/command.py +++ b/resotocore/resotocore/cli/command.py @@ -1467,7 +1467,7 @@ async def prepare() -> Tuple[CLISourceContext, AsyncIterator[Json]]: before = if_set(parsed.get("before"), lambda x: parse_time_or_delta(strip_quotes(x))) after = if_set(parsed.get("after"), lambda x: parse_time_or_delta(strip_quotes(x))) change = if_set(parsed.get("change"), lambda x: HistoryChange[strip_quotes(x)]) - context = await db.search_history(query_model, change, before, after, timeout=timeout) + context = await db.search_history(query_model, change, before, after, with_count=count, timeout=timeout) elif query.aggregate: context = await db.search_aggregation(query_model) elif with_edges: