1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-06-05 01:09:17 +02:00

- fixed regex for percent numbering;

- formatted as floating points votes percentage in polls.
This commit is contained in:
cage
2020-07-13 17:27:46 +02:00
parent 923cd09d15
commit 562d023b55
3 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@
(/ (db:row-votes-count option)
vote-sum)
(error () 0)))
(vote (left-padding (format nil "~a%" (* 100 rate)) 4))
(vote (left-padding (format nil "~f%" (* 100 rate)) 4))
(bar-w (truncate (* rate max-bar-width))))
(format stream "~a~a " padded-index padded-title)
(loop for i from 0 below bar-w do