From c14ae847aeb2afd395149a75019dc4e454c24473 Mon Sep 17 00:00:00 2001 From: sparky8512 <76499194+sparky8512@users.noreply.github.com> Date: Sun, 21 Feb 2021 14:06:01 -0800 Subject: [PATCH] Fix history counter query in sqlite script Got broken when I made a separate samples option for bulk history vs history stats. Also, it looks like I never actually implemented support for the --skip-query option. --- dish_grpc_sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dish_grpc_sqlite.py b/dish_grpc_sqlite.py index c7cd2a2..95bdd57 100644 --- a/dish_grpc_sqlite.py +++ b/dish_grpc_sqlite.py @@ -118,7 +118,7 @@ def loop_body(opts, gstate): rc = dish_common.get_data(opts, gstate, cb_add_item, cb_add_sequence) if opts.bulk_mode and not rc: - if gstate.counter is None and opts.samples < 0: + if gstate.counter is None and not opts.skip_query and opts.bulk_samples < 0: gstate.timestamp, gstate.counter = query_counter(opts, gstate) rc = dish_common.get_bulk_data(opts, gstate, cb_add_bulk)