]> git.ipfire.org Git - ipfire.org.git/commitdiff
donation: Use USD as default currency for the US
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Jul 2018 17:45:25 +0000 (18:45 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Jul 2018 17:45:25 +0000 (18:45 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/handlers.py

index b7805ba1345a800ea8cca57beeee4e0c0c4ac704..27ba74944ee10832cc84b016290fa8902322c4a9 100644 (file)
@@ -71,6 +71,10 @@ class DonateHandler(BaseHandler):
                if not currency in ("EUR", "USD"):
                        currency = "EUR"
 
+                       # Default to USD for the US only
+                       if country == "US":
+                               currency = "USD"
+
                # Set default frequency
                if not frequency in ("one-time", "monthly"):
                        frequency = "one-time"