From d6b774824543a46c0c76732d1c909984840b81a0 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sat, 6 Feb 2021 12:02:29 +0000 Subject: [PATCH] Replace None by False to fix dbsettings behavior --- smsauth/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/smsauth/views.py b/smsauth/views.py index 2c4e5da..1ad2fec 100644 --- a/smsauth/views.py +++ b/smsauth/views.py @@ -39,12 +39,12 @@ def sendTelegram(text, recipient): def sendMessage(text, recipient): if recipient == BUYER: - phone = getValue("smsauth.buyer.phone", getValue("smsauth.recipient", None)) - telegram = getValue("smsauth.buyer.telegram", None) + phone = getValue("smsauth.buyer.phone", getValue("smsauth.recipient", False)) + telegram = getValue("smsauth.buyer.telegram", False) elif recipient == SELLER: - phone = getValue("smsauth.seller.phone", getValue("buyer.recipient", None)) - telegram = getValue("smsauth.seller.telegram", None) + phone = getValue("smsauth.seller.phone", getValue("buyer.recipient", False)) + telegram = getValue("smsauth.seller.telegram", False) else: raise ValueError("Invalid value for recipient: %s" % str(recipient))