From cceba9366ed741a42932168e011cc72943b25ab4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 16 Mar 2021 14:06:05 +0000 Subject: [PATCH] Read command --- notifications_client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index bcf62560d..a55cd3537 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -1023,8 +1023,11 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, _showLocalBox(notifyJson, 'inbox', screenreader, systemLanguage, espeak, currInboxIndex, 10) - elif keyPress.startswith('read '): - postIndexStr = keyPress.split('read ')[1] + elif keyPress.startswith('read ') or keyPress == 'read': + if keyPress == 'read': + postIndexStr = '1' + else: + postIndexStr = keyPress.split('read ')[1] if postIndexStr.isdigit(): postIndex = int(postIndexStr) speakerJson = \