From 238d6073fd3ca660aec284e57461d32b99220602 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 20 Sep 2020 23:37:41 -0700 Subject: [PATCH] fix templates and decimal places --- templates/block.html.tera | 2 +- templates/index.html.tera | 2 +- templates/transaction.html.tera | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/block.html.tera b/templates/block.html.tera index 31c73d9..33a659a 100644 --- a/templates/block.html.tera +++ b/templates/block.html.tera @@ -56,7 +56,7 @@

Reward

-

{{ block_header.reward / 1000000000000 }} WOW

+

{{ block_header.reward / 100000000000 }} WOW

diff --git a/templates/index.html.tera b/templates/index.html.tera index e2391f9..2a94147 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -112,7 +112,7 @@ {{ tx.receive_time | date(format="%Y-%m-%d %H:%M") }} {{ tx.id_hash | truncate(length=8) }} - {{ tx.fee / 1000000000000 }} WOW + {{ tx.fee / 100000000000 }} WOW {{ tx.tx_json_full.vin | length }} / {{ tx.tx_json_full.vout | length }} {{ tx.tx_json_full.vin.0.key.key_offsets | length }} diff --git a/templates/transaction.html.tera b/templates/transaction.html.tera index 1206a76..88e0ba6 100644 --- a/templates/transaction.html.tera +++ b/templates/transaction.html.tera @@ -32,7 +32,7 @@

Transaction Fee

-

{% if tx_info.0.as_json_full.rct_signatures.txnFee %}{{ tx_info.0.as_json_full.rct_signatures.txnFee / 1000000000000 }} WOW{% else %}0 (mined){% endif %}

+

{% if tx_info.0.as_json_full.rct_signatures.txnFee %}{{ tx_info.0.as_json_full.rct_signatures.txnFee / 100000000000 }} WOW{% else %}0 (mined){% endif %}