From 9f882b14eaebd478ca398f9a65ec3854e0b6cf0a Mon Sep 17 00:00:00 2001 From: Michael Granitzer Date: Sun, 4 Jan 2026 14:47:52 +0100 Subject: [PATCH] fix: Slice command - use query_aggregator method and fix CommandResult param - Changed query_and_copy() to query_aggregator() (method from parent class) - Changed 'data' param to 'object' in CommandResult (correct parameter name) --- owilix/core/tasks/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owilix/core/tasks/query.py b/owilix/core/tasks/query.py index 5a2f354..f697b69 100644 --- a/owilix/core/tasks/query.py +++ b/owilix/core/tasks/query.py @@ -468,7 +468,7 @@ def slice_query( prefetch=prefetch ) - for results in db.query_and_copy(): + for results in db.query_aggregator(): if not results.success: if console: console.print(f"[red]Error: {results.error}[/red]") @@ -531,7 +531,7 @@ def slice_query( return CommandResult( success=success, - data={"dataset": target_ds}, + object={"dataset": target_ds}, msg=f"Slice {'completed' if success else 'failed'}" ) -- 2.51.2