From 64ba8207122abc550eebf10f55299d6d13695c7a Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sat, 18 Apr 2020 16:04:13 +0200 Subject: [PATCH] nicer output --- management/commands/import_nk15.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/management/commands/import_nk15.py b/management/commands/import_nk15.py index f55ae36..5c74ef7 100644 --- a/management/commands/import_nk15.py +++ b/management/commands/import_nk15.py @@ -268,7 +268,7 @@ class Command(BaseCommand): #reset database. call_command("migrate") call_command("loaddata","initial") - self.print_success("reset nk20 database") + self.print_success("reset nk20 database\n") import_comptes(cur) self.print_success("comptes table imported") elif kwargs["map"]: @@ -284,10 +284,10 @@ class Command(BaseCommand): # /!\ need a prober MAP_IDBDE if kwargs["boutons"]: import_boutons(cur) - self.print_success("boutons table imported") - if kwargs["transactions"]: - import_transaction(cur) - self.print_success("transaction imported") + self.print_success("boutons table imported\n") if kwargs["aliases"]: import_aliases(cur) - self.print_success("aliases imported") + self.print_success("aliases imported\n") + if kwargs["transactions"]: + import_transaction(cur) + self.print_success("transaction imported\n")