pacemaker82 / PredBat-Table-Card

A custom Predbat table card that allows flexible column management and styling
7 stars 1 forks source link

Costs have negative sign in wrong place #15

Closed PianSom closed 3 months ago

PianSom commented 3 months ago

Should read eg -£2.25, and not £-2.25. (ie should use standard notation for currency.)

Screenshot 2024-03-23 at 20 23 09
gcoan commented 3 months ago

The predbat html actually outputs it like that so it's a predbat bug really.

I hadn't noticed it though

image

PianSom commented 3 months ago

Oh yeah - sorry @pacemaker82 !

pacemaker82 commented 3 months ago

I feel like this is a fix worth fixing. If Trefor fixes in the original card no harm should be done.

Release 1.5.1.6

Screenshot 2024-03-25 at 14 30 57
gcoan commented 3 months ago

I'll fix it in Predbat in the next release I do

gcoan commented 3 months ago

I've included correctly formatting negative HTML plan totals in my latest release of Predbat changes

https://github.com/gcoan/batpred/blob/main/apps/predbat/predbat.py

if you want to try it before I do the PR