From af61e15fc18655455293b98738cf4f4604a0fd8d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Jan 2020 20:35:39 +0000 Subject: [PATCH] schedulePost is true or false --- daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index ab2e2bf5..7f21d40f 100644 --- a/daemon.py +++ b/daemon.py @@ -3711,7 +3711,10 @@ class PubServer(BaseHTTPRequestHandler): fields['replyTo']=None if not fields.get('schedulePost'): fields['schedulePost']=False - print('DEBUG: schedulePost='+str(fields['schedulePost'])) + else: + fields['schedulePost']=False + if fields['schedulePost']=='on': + fields['schedulePost']=True if not fields.get('eventDate'): fields['eventDate']=None if not fields.get('eventTime'):