From ff54485ba431bc02decbb3a9fbc33cbf4ec198af Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Thu, 3 May 2012 19:39:05 -0500 Subject: [PATCH] Fix off-by-one bug generating an identity mapping. This is code that wasn't fixed due to the Record change. Signed-off-by: brian m. carlson --- newfol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newfol b/newfol index 824caa3..4216e26 100755 --- a/newfol +++ b/newfol @@ -1246,7 +1246,7 @@ def import_into(dtbname, dbtype, minfields=0, strict=False, identity=False): else: msg = "No mapping specified for db {0}; using identity mapping" mapobj = Mapping(dtbname, DatabaseData().schemata.nfields) - for i in range(1, DatabaseData().schemata.nfields): + for i in range(DatabaseData().schemata.nfields): mapobj.set_field_mapping(i, i, i, "") print(msg.format(dtbname), file=sys.stderr) DatabaseData().records = list(filter(lambda x: x.dbname != dtbname,