Skip to content

Commit

Permalink
[resotocore][fix] History should accept count flag (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Nov 30, 2023
1 parent d46f9c7 commit 8f75b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resotocore/resotocore/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8f75b5f

Please sign in to comment.