Fix import

This commit is contained in:
Yohann D'ANELLO 2020-05-05 06:41:48 +02:00
parent ee23ec7641
commit aa1dd2cebc
1 changed files with 1 additions and 2 deletions

View File

@ -263,8 +263,7 @@ class Command(BaseCommand):
obj_dict = { obj_dict = {
"file": args[0], "file": args[0],
"team": Team.objects.get(pk=args[1]), "team": Team.objects.get(pk=args[1]),
"source": "defender" if args[3] == "DEFENDER" else "opponent" "source": "opponent" if args[4] == 1 else "rapporteur",
if args[4] == "OPPOSANT" else "rapporteur",
"uploaded_at": args[4], "uploaded_at": args[4],
} }
with transaction.atomic(): with transaction.atomic():