mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-04-03 17:31:47 +01:00
bugfix returning multiple object catch
This commit is contained in:
parent
44fe6a8b89
commit
fb0438d352
@ -99,7 +99,7 @@ def readentrance(filename):
|
|||||||
message = " ! - DUPLICATE in db. entrance:"+ str(k.entrance) + ", slug:" + str(k.slug())
|
message = " ! - DUPLICATE in db. entrance:"+ str(k.entrance) + ", slug:" + str(k.slug())
|
||||||
models.DataIssue.objects.create(parser='caves', message=message)
|
models.DataIssue.objects.create(parser='caves', message=message)
|
||||||
print(message)
|
print(message)
|
||||||
for k in kaves:
|
for k in kents:
|
||||||
if k.slug() != None:
|
if k.slug() != None:
|
||||||
print(" ! - OVERWRITING this one: slug:"+ str(k.slug()))
|
print(" ! - OVERWRITING this one: slug:"+ str(k.slug()))
|
||||||
k.notes = "DUPLICATE entrance found on import. Please fix\n" + k.notes
|
k.notes = "DUPLICATE entrance found on import. Please fix\n" + k.notes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user