From ca7bbb46ce4c5a903f91c056fc117925310d7dd8 Mon Sep 17 00:00:00 2001 From: Lennart Weller Date: Sun, 17 Mar 2013 00:25:43 +0100 Subject: changed the string to a price object --- src/web.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web.vala') diff --git a/src/web.vala b/src/web.vala index 7140c22..c61c8b9 100644 --- a/src/web.vala +++ b/src/web.vala @@ -440,8 +440,8 @@ public class WebServer { string table = ""; foreach(var e in db.get_stock()) { - table += "%s%s%d%s€%s€".printf( - e.id, e.id, e.id, e.name, e.amount, e.memberprice, e.guestprice + table += "%s%s%df%€%f€".printf( + e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100, e.guestprice / 100 ); } -- cgit v1.2.3