diff options
| -rw-r--r-- | archaeological_operations/import_from_dbf.py | 2 | ||||
| -rwxr-xr-x | archaeological_operations/management/commands/import_operations.py | 2 | 
2 files changed, 1 insertions, 3 deletions
| diff --git a/archaeological_operations/import_from_dbf.py b/archaeological_operations/import_from_dbf.py index d0f55cdbe..843e5151c 100644 --- a/archaeological_operations/import_from_dbf.py +++ b/archaeological_operations/import_from_dbf.py @@ -247,8 +247,6 @@ def import_operations_dbf(values, col_defs=DBF_OPE_COLS, update=False,      for line_idx, vals in enumerate(values):          if stdout:              stdout.write("\r* line %d" % (line_idx)) -        if not line_idx: -            continue # remove header          args = {}          for col_idx, val in enumerate(vals):              if len(col_defs) <= col_idx or not col_defs[col_idx]: diff --git a/archaeological_operations/management/commands/import_operations.py b/archaeological_operations/management/commands/import_operations.py index cdcbff54b..3cf4a569d 100755 --- a/archaeological_operations/management/commands/import_operations.py +++ b/archaeological_operations/management/commands/import_operations.py @@ -33,7 +33,7 @@ class Command(BaseCommand):      def handle(self, *args, **options):          if not args or not args[0]: -            raise CommandError("No file provided." % args[0]) +            raise CommandError("No file provided.")          filename = args[0]          update = len(args) > 1 and args[1]          file_type = len(args) > 1 and args[2] | 
