From c7ca1228e8b7a6f4cbd2a2043d51d67ba9af04ce Mon Sep 17 00:00:00 2001 From: Christian Fries Date: Sat, 26 Jun 2021 11:23:31 +0200 Subject: [PATCH] fix dotenv bool bug --- data.py | 2 +- example.env | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data.py b/data.py index 3bbee11..46b6692 100644 --- a/data.py +++ b/data.py @@ -17,7 +17,7 @@ # iota address for transfers IOTA_ADDRESS= os.getenv('IOTA_ADDRESS') -AUTHOR_ADDRESSES= bool(os.getenv('AUTHOR_ADDRESSES')) +AUTHOR_ADDRESSES= os.getenv('AUTHOR_ADDRESSES') == 'true' # register all paying user token hashes paid_db = {} diff --git a/example.env b/example.env index fcbd8e3..322844e 100644 --- a/example.env +++ b/example.env @@ -21,4 +21,4 @@ PRICE_PER_CONTENT=1000000 NODE_URL=https://api.hornet-1.testnet.chrysalis2.com # allow authors to have own addresses in their location field -AUTHOR_ADDRESSES=False +AUTHOR_ADDRESSES=false