diff --git a/lnbits/extensions/gerty/crud.py b/lnbits/extensions/gerty/crud.py index f56faad36..9eeb1a4af 100644 --- a/lnbits/extensions/gerty/crud.py +++ b/lnbits/extensions/gerty/crud.py @@ -10,14 +10,15 @@ async def create_gerty(wallet_id: str, data: Gerty) -> Gerty: gerty_id = urlsafe_short_hash() await db.execute( """ - INSERT INTO gerty.gertys (id, name, wallet, lnbits_wallets, sats_quote, exchange, onchain_stats, ln_stats) - VALUES (?, ?, ?, ?, ?, ?, ?, ?) + INSERT INTO gerty.gertys (id, name, wallet, lnbits_wallets, mempool_endpoint, sats_quote, exchange, onchain_stats, ln_stats) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) """, ( gerty_id, data.name, data.wallet, data.lnbits_wallets, + data.mempool_endpoint, data.sats_quote, data.exchange, data.onchain_stats, diff --git a/lnbits/extensions/gerty/models.py b/lnbits/extensions/gerty/models.py index b8eee6b5e..c3590f032 100644 --- a/lnbits/extensions/gerty/models.py +++ b/lnbits/extensions/gerty/models.py @@ -11,7 +11,7 @@ class Gerty(BaseModel): name: str wallet: str lnbits_wallets: str = Query(None) # Wallets to keep an eye on, {"wallet-id": "wallet-read-key, etc"} - mempool_endpoint: str = Query("https://mempool.space") # Mempool endpoint to use + mempool_endpoint: str = Query(None) # Mempool endpoint to use sats_quote: bool = Query(False) # Fetch Satoshi quotes exchange: str = Query(None) # BTC <-> Fiat exchange rate to pull ie "USD", in 0.0001 and sats onchain_stats: bool = Query(False) # Onchain stats diff --git a/lnbits/extensions/gerty/templates/gerty/index.html b/lnbits/extensions/gerty/templates/gerty/index.html index c55ccb9ec..f6bc62def 100644 --- a/lnbits/extensions/gerty/templates/gerty/index.html +++ b/lnbits/extensions/gerty/templates/gerty/index.html @@ -47,11 +47,21 @@ dense size="xs" icon="sentiment_satisfied" - :color="($q.dark.isActive) ? 'grey-7' : 'grey-5'" + color="green" type="a" :href="props.row.gerty" target="_blank" >Launch software Gerty + Launch software Gerty {{ (col.name == 'tip_options' && col.value ? @@ -138,6 +148,12 @@ :options="currencyOptions" label="Exchange rate" > + Used for getting onchain/ln stats