From 242a1c96a67c443362e08edb5564ed8fd87ef9b7 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 5 May 2020 08:01:42 +0200 Subject: [PATCH] Fix syntheses import --- apps/member/management/commands/import_olddb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/member/management/commands/import_olddb.py b/apps/member/management/commands/import_olddb.py index 52e9f51..4c58e05 100644 --- a/apps/member/management/commands/import_olddb.py +++ b/apps/member/management/commands/import_olddb.py @@ -268,8 +268,9 @@ class Command(BaseCommand): obj_dict = { "file": args[0], "team": Team.objects.get(pk=args[1]), - "source": "opponent" if args[4] == 1 else "rapporteur", - "uploaded_at": args[4], + "source": "opponent" if args[3] == 1 else "rapporteur", + "round": args[4], + "uploaded_at": args[5], } with transaction.atomic(): try: