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():