fix issue @ben ;)
This commit is contained in:
parent
32b785d790
commit
40bcee6d22
3 changed files with 256 additions and 250 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{% extends "public.html" %} {% block toolbar_title %} Gerty: {% raw %}{{
|
||||
gertyname }}{% endraw %}{% endblock %}{% block page %} {% raw %}
|
||||
gertyname }}{% endraw %}{% endblock %}{% block page %} {% raw %}
|
||||
|
||||
<div
|
||||
<div
|
||||
class="q-pa-md row items-start q-gutter-md"
|
||||
v-if="fun_exchange_market_rate || fun_satoshi_quotes"
|
||||
>
|
||||
>
|
||||
<q-card
|
||||
v-if="fun_exchange_market_rate"
|
||||
unelevated
|
||||
|
|
@ -30,9 +30,12 @@
|
|||
<small>~ Satoshi {{fun_satoshi_quotes["date"]}}</small>
|
||||
</blockquote>
|
||||
</q-card>
|
||||
</div>
|
||||
</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"
|
||||
|
|
@ -45,12 +48,12 @@
|
|||
<small class="text-h4">({{wallet["name"]}})</small>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
<div
|
||||
class="q-pa-md row items-start q-gutter-md"
|
||||
v-if="dashboard_onchain[0] || dashboard_mining[0] || lightning_dashboard[0]"
|
||||
>
|
||||
>
|
||||
<q-card
|
||||
class="q-pa-sm"
|
||||
v-if="dashboard_onchain[0]"
|
||||
|
|
@ -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>
|
||||
|
|
@ -139,10 +147,10 @@
|
|||
</div>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endraw %} {% endblock %} {% block scripts %}
|
||||
<script>
|
||||
{% endraw %} {% endblock %} {% block scripts %}
|
||||
<script>
|
||||
Vue.component(VueQrcode.name, VueQrcode)
|
||||
|
||||
new Vue({
|
||||
|
|
@ -154,7 +162,7 @@
|
|||
dashboard_onchain: {},
|
||||
fun_satoshi_quotes: {},
|
||||
fun_exchange_market_rate: {
|
||||
unit: ""
|
||||
unit: ''
|
||||
},
|
||||
dashboard_mining: {},
|
||||
lightning_dashboard: {},
|
||||
|
|
@ -246,6 +254,5 @@
|
|||
await this.getGertyInfo()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue