diff --git a/lnbits/extensions/gerty/migrations.py b/lnbits/extensions/gerty/migrations.py
index 61722835..e98fc4f2 100644
--- a/lnbits/extensions/gerty/migrations.py
+++ b/lnbits/extensions/gerty/migrations.py
@@ -17,10 +17,9 @@ async def m001_initial(db):
"""
)
+
async def m002_add_utc_offset_col(db):
"""
support for UTC offset
"""
- await db.execute(
- "ALTER TABLE gerty.gertys ADD COLUMN utc_offset INT;"
- )
+ await db.execute("ALTER TABLE gerty.gertys ADD COLUMN utc_offset INT;")
diff --git a/lnbits/extensions/gerty/templates/gerty/index.html b/lnbits/extensions/gerty/templates/gerty/index.html
index 3c258c1c..5d67f46e 100644
--- a/lnbits/extensions/gerty/templates/gerty/index.html
+++ b/lnbits/extensions/gerty/templates/gerty/index.html
@@ -179,15 +179,13 @@
>
-
Use the toggles below to control what your Gerty will display
diff --git a/lnbits/extensions/gerty/views_api.py b/lnbits/extensions/gerty/views_api.py index 802db233..d636b8d4 100644 --- a/lnbits/extensions/gerty/views_api.py +++ b/lnbits/extensions/gerty/views_api.py @@ -155,7 +155,7 @@ async def api_gerty_json(gerty_id: str, p: int = None): # page number def get_screen_slug_by_index(index: int, screens_list): logger.debug("Index: {0}".format(index)) logger.debug("len(screens_list) - 1: {0} ".format(len(screens_list) - 1)) - if(index <= len(screens_list) - 1): + if index <= len(screens_list) - 1: return list(screens_list)[index - 1] else: return None @@ -302,38 +302,26 @@ async def get_onchain_dashboard(gerty): ) text = [] stat = round(r.json()["progressPercent"]) - text.append( - get_text_item_dict("Progress through current epoch", 12) - ) + text.append(get_text_item_dict("Progress through current epoch", 12)) text.append(get_text_item_dict("{0}%".format(stat), 60)) areas.append(text) text = [] stat = r.json()["estimatedRetargetDate"] dt = datetime.fromtimestamp(stat / 1000).strftime("%e %b %Y at %H:%M") - text.append( - get_text_item_dict("Date of next difficulty adjustment", 12) - ) + text.append(get_text_item_dict("Date of next difficulty adjustment", 12)) text.append(get_text_item_dict(dt, 20)) areas.append(text) text = [] stat = r.json()["remainingBlocks"] - text.append( - get_text_item_dict( - "Blocks until next adjustment", 12 - ) - ) + text.append(get_text_item_dict("Blocks until next adjustment", 12)) text.append(get_text_item_dict("{0}".format(format_number(stat)), 60)) areas.append(text) text = [] stat = r.json()["remainingTime"] - text.append( - get_text_item_dict( - "Blocks until next adjustment", 12 - ) - ) + text.append(get_text_item_dict("Blocks until next adjustment", 12)) text.append(get_text_item_dict(get_time_remaining(stat / 1000, 4), 60)) areas.append(text) diff --git a/lnbits/extensions/lnurldevice/templates/lnurldevice/index.html b/lnbits/extensions/lnurldevice/templates/lnurldevice/index.html index 83ff4571..b0b223ff 100644 --- a/lnbits/extensions/lnurldevice/templates/lnurldevice/index.html +++ b/lnbits/extensions/lnurldevice/templates/lnurldevice/index.html @@ -797,7 +797,7 @@ LNbits.utils.notifyApiError(error) }) }, - clearFormDialoglnurldevice () { + clearFormDialoglnurldevice() { this.formDialoglnurldevice.data = { lnurl_toggle: false, show_message: false, diff --git a/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html b/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html index de477834..36593d74 100644 --- a/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html +++ b/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html @@ -57,13 +57,14 @@ /usermanager/api/v1/users/<user_id>{"id": <string>, "name": <string>, "admin":
- <string>, "email": <string>, "password": <string>}
{"X-Api-Key": <string>}
curl -X POST {{ request.base_url }}usermanager/api/v1/extensions?extension=withdraw&userid=user_id&active=true -H "X-Api-Key: {{ user.wallets[0].inkey }}" -H
- "Content-type: application/json"
+ >curl -X POST {{ request.base_url
+ }}usermanager/api/v1/extensions?extension=withdraw&userid=user_id&active=true
+ -H "X-Api-Key: {{ user.wallets[0].inkey }}" -H "Content-type:
+ application/json"
{"extension": "updated"}
+ {"extension": "updated"}