From 01af775e41fcf8ff22268f1debfab5ef5bfcb867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 3 May 2022 11:27:26 +0200 Subject: [PATCH] Round sats price to one decimal --- displays/inkyphat.py | 2 +- displays/papiruszero2in.py | 2 +- displays/waveshare2in13d.py | 2 +- displays/waveshare2in13v2.py | 2 +- displays/waveshare2in66.py | 2 +- displays/waveshare2in7.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/displays/inkyphat.py b/displays/inkyphat.py index 380e89d..1e721b5 100755 --- a/displays/inkyphat.py +++ b/displays/inkyphat.py @@ -469,7 +469,7 @@ def update_amount_screen(): draw.text( (60, 60), messages.amount_screen_3 - + str(round(config.SATPRICE, 2)) + + "%.1f" % round(config.SATPRICE, 1) + messages.amount_screen_4 + config.conf["atm"]["centname"], fill=config.BLACK, diff --git a/displays/papiruszero2in.py b/displays/papiruszero2in.py index 125d629..812b7d1 100755 --- a/displays/papiruszero2in.py +++ b/displays/papiruszero2in.py @@ -459,7 +459,7 @@ def update_amount_screen(): draw.text( (60, 60), messages.amount_screen_3 - + str(round(config.SATPRICE, 2)) + + "%.1f" % round(config.SATPRICE, 1) + messages.amount_screen_4 + config.conf["atm"]["centname"], fill=config.BLACK, diff --git a/displays/waveshare2in13d.py b/displays/waveshare2in13d.py index 8b02485..83b2bb8 100644 --- a/displays/waveshare2in13d.py +++ b/displays/waveshare2in13d.py @@ -469,7 +469,7 @@ def update_amount_screen(): draw.text( (60, 65), messages.amount_screen_3 - + str(round(config.SATPRICE, 2)) + + "%.1f" % round(config.SATPRICE, 1) + messages.amount_screen_4 + config.conf["atm"]["centname"], fill=config.BLACK, diff --git a/displays/waveshare2in13v2.py b/displays/waveshare2in13v2.py index 3c70c39..7f63310 100644 --- a/displays/waveshare2in13v2.py +++ b/displays/waveshare2in13v2.py @@ -469,7 +469,7 @@ def update_amount_screen(): draw.text( (60, 70), messages.amount_screen_3 - + str(round(config.SATPRICE, 2)) + + "%.1f" % round(config.SATPRICE, 1) + messages.amount_screen_4 + config.conf["atm"]["centname"], fill=config.BLACK, diff --git a/displays/waveshare2in66.py b/displays/waveshare2in66.py index 29a2f62..8af7cd9 100644 --- a/displays/waveshare2in66.py +++ b/displays/waveshare2in66.py @@ -468,7 +468,7 @@ def update_amount_screen(): draw.text( (80, 104), messages.amount_screen_3 - + str(round(config.SATPRICE, 2)) + + "%.1f" % round(config.SATPRICE, 1) + messages.amount_screen_4 + config.conf["atm"]["centname"], fill=config.BLACK, diff --git a/displays/waveshare2in7.py b/displays/waveshare2in7.py index c18cbfe..023deb3 100644 --- a/displays/waveshare2in7.py +++ b/displays/waveshare2in7.py @@ -470,7 +470,7 @@ def update_amount_screen(): draw.text( (60, 70), messages.amount_screen_3 - + str(round(config.SATPRICE, 2)) + + "%.1f" % round(config.SATPRICE, 1) + messages.amount_screen_4 + config.conf["atm"]["centname"], fill=config.BLACK,