2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

bugfix returning multiple object catch

This commit is contained in:
Philip Sargent 2020-06-13 01:26:28 +01:00
parent 44fe6a8b89
commit fb0438d352

View File

@ -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