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.
This commit is contained in:
sparky8512 2021-02-21 14:06:01 -08:00
parent e10c9dbb7f
commit c14ae847ae

View file

@ -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)