fix issue @ben ;)

This commit is contained in:
dni ⚡ 2023-01-04 17:09:50 +01:00
parent 32b785d790
commit 40bcee6d22
3 changed files with 256 additions and 250 deletions

View file

@ -70,7 +70,7 @@ def get_text_item_dict(
else:
data_text["x"] = x_pos if x_pos > 0 else 0
data_text["y"] = y_pos if x_pos > 0 else 0
return text
return data_text
def get_date_suffix(dayNumber):
@ -532,7 +532,6 @@ async def get_screen_data(screen_num: int, screens_list: list, gerty):
"title": title,
"areas": areas,
}
return data

View file

@ -32,7 +32,10 @@
</q-card>
</div>
<div class="q-pa-md row items-start q-gutter-md" v-if="lnbits_wallets_balance[0]">
<div
class="q-pa-md row items-start q-gutter-md"
v-if="lnbits_wallets_balance[0]"
>
<q-card
class="q-pa-sm"
v-for="(wallet, t) in lnbits_wallets_balance"
@ -78,7 +81,12 @@
</q-card-section>
</q-card>
<q-card class="q-pa-sm" v-if="lightning_dashboard[0]" unelevated class="q-pa-sm">
<q-card
class="q-pa-sm"
v-if="lightning_dashboard[0]"
unelevated
class="q-pa-sm"
>
<q-card-section>
<div class="text-h6">Lightning (Last 7 days)</div>
</q-card-section>
@ -154,7 +162,7 @@
dashboard_onchain: {},
fun_satoshi_quotes: {},
fun_exchange_market_rate: {
unit: ""
unit: ''
},
dashboard_mining: {},
lightning_dashboard: {},
@ -248,4 +256,3 @@
})
</script>
{% endblock %}

View file

@ -18,10 +18,10 @@ from .crud import (
update_gerty,
)
from .helpers import (
get_screen_data,
get_satoshi,
gerty_should_sleep,
get_next_update_time,
get_satoshi,
get_screen_data,
get_screen_slug_by_index,
)
from .models import Gerty