[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: fix top-up
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: fix top-up |
Date: |
Wed, 18 Dec 2019 20:22:30 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new b737681 fix top-up
b737681 is described below
commit b7376812e8b82efe2888cb535d856e7ed39f5cfd
Author: Florian Dold <address@hidden>
AuthorDate: Wed Dec 18 20:22:25 2019 +0100
fix top-up
---
talerbank/app/management/commands/top_up.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/talerbank/app/management/commands/top_up.py
b/talerbank/app/management/commands/top_up.py
index 36713f1..04cbe51 100644
--- a/talerbank/app/management/commands/top_up.py
+++ b/talerbank/app/management/commands/top_up.py
@@ -37,7 +37,7 @@ LOGGER.setLevel(logging.INFO)
class Command(BaseCommand):
- help = "Add bank accounts."
+ help = "Add money to a bank account (and debit the bank's account)."
def add_arguments(self, parser):
parser.add_argument(
@@ -58,9 +58,10 @@ class Command(BaseCommand):
# for each one of them.
def handle(self, *args, **options):
user = User.objects.get(username=options["user"])
+ # Take the money from the bank's account
try:
debit_account = BankAccount.objects.get(
- account_no=0,
+ account_no=1,
)
except BankAccount.DoesNotExist:
LOGGER.error("Debit account (bank's own account) does not exist.")
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: fix top-up,
gnunet <=