gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: fix db dump


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: fix db dump
Date: Tue, 28 Mar 2017 16:28:53 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 2abf4bb  fix db dump
2abf4bb is described below

commit 2abf4bb66b1f8cf00d0bc96d540dc41d8c5cc261
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 28 16:28:46 2017 +0200

    fix db dump
---
 talerbank/app/management/commands/dump_talerdb.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/management/commands/dump_talerdb.py 
b/talerbank/app/management/commands/dump_talerdb.py
index 89c4933..ab587d9 100644
--- a/talerbank/app/management/commands/dump_talerdb.py
+++ b/talerbank/app/management/commands/dump_talerdb.py
@@ -19,6 +19,7 @@ from ...models import BankAccount, BankTransaction
 from django.db.utils import OperationalError, ProgrammingError
 import logging
 import sys
+from ...amounts import floatify
 
 # Rewrite to match new BankTransaction layout.
 
@@ -49,7 +50,7 @@ def dump_history():
             # as the first/last character on a line makes flake8 complain
             msg.append("+%s, " % item.credit_account.account_no)
             msg.append("-%s, " % item.debit_account.account_no)
-            msg.append("%.2f, " % item.amount)
+            msg.append("%.2f, " % floatify(item.amount_obj))
             msg.append(item.subject)
             print(''.join(msg))
     except (OperationalError, ProgrammingError):

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]