From fb0438d3524ceaf331a53622153bfec06aa5175a Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 13 Jun 2020 01:26:28 +0100 Subject: [PATCH] bugfix returning multiple object catch --- parsers/caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/caves.py b/parsers/caves.py index 219ae25..7f7364c 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -99,7 +99,7 @@ def readentrance(filename): message = " ! - DUPLICATE in db. entrance:"+ str(k.entrance) + ", slug:" + str(k.slug()) models.DataIssue.objects.create(parser='caves', message=message) print(message) - for k in kaves: + for k in kents: if k.slug() != None: print(" ! - OVERWRITING this one: slug:"+ str(k.slug())) k.notes = "DUPLICATE entrance found on import. Please fix\n" + k.notes