SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7ac8e3e043da998e0c8acb9f366b4288b3c7542b
parent 5d21e52aeed8ecdf092232d079e314229009e9bf
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Wed, 27 Jan 2021 19:20:19 +1100

Fix -1 seconds bug and broken logging

Diffstat:
Mserver.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server.py b/server.py @@ -33,7 +33,7 @@ socket_ = SocketIO(app, async_mode=async_mode, cors_allowed_origins="*") @socket_.on('initialise') def test_message(message): emit('payresponse', { - 'status' : 'Initialising payment...' + 'status' : 'Initialising payment...', 'time_left' : 0, 'response': 'Initialising payment...'}) @@ -104,7 +104,7 @@ def make_payment(payload): return # Return feedback via the websocket, updating the payment status and time remaining. -def update_status(payment, console_status=True): +def update_status(payment, status, console_status=True): payment.status = status payment.response = status # Log to python stdout also