From aa1dd2cebccc132587f43812085a80af3c6d9b8e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 5 May 2020 06:41:48 +0200 Subject: [PATCH] Fix import --- apps/member/management/commands/import_olddb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/member/management/commands/import_olddb.py b/apps/member/management/commands/import_olddb.py index 97e00eb..b26c9aa 100644 --- a/apps/member/management/commands/import_olddb.py +++ b/apps/member/management/commands/import_olddb.py @@ -263,8 +263,7 @@ class Command(BaseCommand): obj_dict = { "file": args[0], "team": Team.objects.get(pk=args[1]), - "source": "defender" if args[3] == "DEFENDER" else "opponent" - if args[4] == "OPPOSANT" else "rapporteur", + "source": "opponent" if args[4] == 1 else "rapporteur", "uploaded_at": args[4], } with transaction.atomic():