From 8f2becb9ee951016e825a41133d933c7da10c35d Mon Sep 17 00:00:00 2001 From: 3wc <3wc.cyberia@doesthisthing.work> Date: Wed, 21 Jul 2021 21:51:50 +0200 Subject: [PATCH 01/10] Fix SyntaxWarning on `is not ""` `capsulflask/__init__.py:143: SyntaxWarning: "is not" with a literal. Did you mean "!="?` --- capsulflask/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capsulflask/__init__.py b/capsulflask/__init__.py index 7261bf4..55643bb 100644 --- a/capsulflask/__init__.py +++ b/capsulflask/__init__.py @@ -140,7 +140,7 @@ else: app.config['HTTP_CLIENT'] = MyHTTPClient(timeout_seconds=int(app.config['INTERNAL_HTTP_TIMEOUT_SECONDS'])) app.config['BTCPAY_ENABLED'] = False -if app.config['BTCPAY_URL'] is not "": +if app.config['BTCPAY_URL'] != "": try: app.config['BTCPAY_CLIENT'] = btcpay.Client(api_uri=app.config['BTCPAY_URL'], pem=app.config['BTCPAY_PRIVATE_KEY']) app.config['BTCPAY_ENABLED'] = True From 73042d1705ed4c0920ebb16b9e5ca22713b35e87 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.cyberia@doesthisthing.work> Date: Wed, 21 Jul 2021 01:13:52 +0200 Subject: [PATCH 02/10] Disco updates for YOLOCOLO site --- capsulflask/templates/base.html | 14 ++--- capsulflask/templates/faq.html | 90 +++++++------------------------- capsulflask/templates/index.html | 31 +++++------ 3 files changed, 40 insertions(+), 95 deletions(-) diff --git a/capsulflask/templates/base.html b/capsulflask/templates/base.html index 43f6266..a6b751c 100644 --- a/capsulflask/templates/base.html +++ b/capsulflask/templates/base.html @@ -13,7 +13,7 @@