Skip to content

Commit

Permalink
fix dotenv bool bug
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Jun 26, 2021
1 parent 854fcf6 commit c7ca122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c7ca122

Please sign in to comment.