fix: change save image logic
Some checks failed
Build Worker Base and Application Images / check-base-changes (push) Successful in 8s
Build Worker Base and Application Images / build-base (push) Has been skipped
Build Worker Base and Application Images / build-docker (push) Successful in 3m15s
Build Worker Base and Application Images / deploy-stack (push) Has been cancelled
Some checks failed
Build Worker Base and Application Images / check-base-changes (push) Successful in 8s
Build Worker Base and Application Images / build-base (push) Has been skipped
Build Worker Base and Application Images / build-docker (push) Successful in 3m15s
Build Worker Base and Application Images / deploy-stack (push) Has been cancelled
This commit is contained in:
parent
61ac39b4f3
commit
9f8372d844
1 changed files with 4 additions and 4 deletions
|
@ -549,10 +549,6 @@ class WebSocketHandler:
|
|||
# Update tracking integrations with session ID
|
||||
shared_stream_manager.set_session_id(display_identifier, session_id)
|
||||
|
||||
# Save snapshot image after getting sessionId
|
||||
if session_id:
|
||||
await self._save_snapshot(display_identifier, session_id)
|
||||
|
||||
async def _handle_set_progression_stage(self, message: SetProgressionStageMessage) -> None:
|
||||
"""Handle setProgressionStage message."""
|
||||
display_identifier = message.payload.displayIdentifier
|
||||
|
@ -568,6 +564,10 @@ class WebSocketHandler:
|
|||
if session_id:
|
||||
shared_stream_manager.set_progression_stage(session_id, stage)
|
||||
|
||||
# Save snapshot image when progression stage is car_fueling
|
||||
if stage == 'car_fueling' and session_id:
|
||||
await self._save_snapshot(display_identifier, session_id)
|
||||
|
||||
# If stage indicates session is cleared/finished, clear from tracking
|
||||
if stage in ['finished', 'cleared', 'idle']:
|
||||
# Get session ID for this display and clear it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue