Changeset - 025b79e9a3f3
[Not reviewed]
default
0 3 0
Dennis Fink - 3 years ago 2021-12-28 21:55:20
dennis.fink@c3l.lu
Fix typo and release
3 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
c3l_membership/__init__.py
Show inline comments
 
@@ -29,25 +29,25 @@ def create_app():
 
    app.config.setdefault("REGULAR_FEE", 120)
 

	
 
    app.config.setdefault("DIGICASH_ENABLED", True)
 
    app.config.setdefault("BITCOIN_ENABLED", True)
 
    app.config.setdefault("ETHEREUM_ENABLED", True)
 
    app.config.setdefault("MONERO_ENABLED", True)
 
    app.config.setdefault("ZCASH_ENABLED", True)
 

	
 
    app.config.setdefault(
 
        "BITCOIN_CONVERSION_SCRIPT", "/usr/local/share/btc/BTC_Membership.pl"
 
    )
 
    app.config.setdefault(
 
        "ETHERUM_CONVERSION_SCRIPT", "/usr/local/share/eth/ETH_Membership.pl"
 
        "ETHEREUM_CONVERSION_SCRIPT", "/usr/local/share/eth/ETH_Membership.pl"
 
    )
 
    app.config.setdefault(
 
        "MONERO_CONVERSION_SCRIPT", "/usr/local/share/xmr/XMR_Membership.pl"
 
    )
 
    app.config.setdefault(
 
        "ZCASH_CONVERSION_SCRIPT", "/usr/local/share/zcash/ZCASH_Membership.pl"
 
    )
 

	
 
    from .views import root_page
 

	
 
    app.register_blueprint(root_page)
 

	
c3l_membership/views.py
Show inline comments
 
@@ -68,25 +68,25 @@ def index():
 
                form.state.data,
 
                form.country.data,
 
            )
 
        )
 
        xml_data["address"] = re.sub("\s+", " ", xml_data["address"])
 

	
 
        if form.payment.data == "bitcoin":
 
            price = subprocess.check_output(
 
                [current_app.config["BITCOIN_CONVERSION_SCRIPT"], str(price)]
 
            ).decode("utf-8")
 
        elif form.payment.data == "ethereum":
 
            price = subprocess.check_output(
 
                [current_app.config["ETHERUM_CONVERSION_SCRIPT"], str(price)]
 
                [current_app.config["ETHEREUM_CONVERSION_SCRIPT"], str(price)]
 
            ).decode("utf-8")
 
        elif form.payment.data == "monero":
 
            price = subprocess.check_output(
 
                [current_app.config["MONERO_CONVERSION_SCRIPT"], str(price)]
 
            ).decode("utf-8")
 
        elif form.payment.data == "zcash":
 
            price = subprocess.check_output(
 
                [current_app.config["ZCASH_CONVERSION_SCRIPT"], str(price)]
 
            ).decode("utf-8")
 
        elif form.payment.data == "digicash":
 
            price = price * 100
 

	
pyproject.toml
Show inline comments
 
[tool.poetry]
 
name = "c3l-membership"
 
version = "1.1.0"
 
version = "1.1.1"
 
description = ""
 
authors = ["Dennis Fink <dennis.fink@c3l.lu>"]
 
license = "GPL-3.0-or-later"
 
include = ["c3l_membership/static/*", "c3l_membership/template/*"]
 

	
 
[tool.poetry.dependencies]
 
python = ">=3.7.0,<4"
 
Flask = "2.0.2"
 
Flask-QRcode = "3.0.0"
 
Flask-WeasyPrint = "0.6"
 
Flask-WTF = "1.0.0"
 
email-validator = "1.1.3"
0 comments (0 inline, 0 general)