# HG changeset patch # User Dennis Fink # Date 2022-01-20 13:09:36 # Node ID dbf7ee7956eb3f7144d7813d55cb9abf4dd208c5 # Parent 9b37bb918b8a2e63c965bb8e3962b8f85f5d15dc Reformat diff --git a/c3l_membership/views.py b/c3l_membership/views.py --- a/c3l_membership/views.py +++ b/c3l_membership/views.py @@ -38,14 +38,13 @@ def index(): if current_app.config["DIGICASH_ENABLED"]: choices.append(("digicash", gettext("by DigiCash"))) - for cryptocurrency_label, options in current_app.config["CRYPTOCURRENCIES"].items(): - if options["ENABLED"]: - choices.append( - ( - cryptocurrency_label, - " ".join((gettext("by"), cryptocurrency_label.title())), - ), - ) + choices.extend( + (cryptocurrency_label, " ".join((gettext("by"), cryptocurrency_label.title()))) + for cryptocurrency_label, options in current_app.config[ + "CRYPTOCURRENCIES" + ].items() + if options["ENABLED"] + ) form.payment.choices = choices