From dd3e4b5a1f95ce6c0ec139f61bd59efce5912caf Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 15 Jun 2023 11:43:58 -0400 Subject: [PATCH] Emit backfill details in broadcasts Send both the `Viz.name` and `timeframe: int` so that the UI side can match against them and only update a lone curve in a single plot. --- piker/data/history.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/data/history.py b/piker/data/history.py index b2cf6b68..d6f5fb5f 100644 --- a/piker/data/history.py +++ b/piker/data/history.py @@ -294,7 +294,7 @@ async def start_backfill( ) await sampler_stream.send({ 'broadcast_all': { - 'backfilling': True + 'backfilling': (mkt.fqme, timeframe), }, }) @@ -323,7 +323,7 @@ async def start_backfill( ) await sampler_stream.send({ 'broadcast_all': { - 'backfilling': True + 'backfilling': (mkt.fqme, timeframe), }, }) @@ -417,7 +417,7 @@ async def start_backfill( # loop await sampler_stream.send({ 'broadcast_all': { - 'backfilling': True + 'backfilling': (mkt.fqme, timeframe), }, }) gap_indices: tuple | None = detect_null_time_gap(shm)