From 42ed67e8c7181e78c6195bd98b75318d12b1e46f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 5 Apr 2015 18:58:32 +0200 Subject: [PATCH] fix #1131 --- scripts/merchant/merchant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/merchant/merchant.py b/scripts/merchant/merchant.py index 507ab2b84..101297b93 100644 --- a/scripts/merchant/merchant.py +++ b/scripts/merchant/merchant.py @@ -211,7 +211,7 @@ def db_thread(): # add a new request to the table. addr, amount, confs, minutes = params sql = "INSERT INTO electrum_payments (address, amount, confirmations, received_at, expires_at, paid, processed)"\ - + " VALUES ('%s', %f, %d, datetime('now'), datetime('now', '+%d Minutes'), NULL, NULL);"%(addr, amount, confs, minutes) + + " VALUES ('%s', %.8f, %d, datetime('now'), datetime('now', '+%d Minutes'), NULL, NULL);"%(addr, amount, confs, minutes) print sql cur.execute(sql)