mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 02:07:12 +00:00
debug ent report
This commit is contained in:
@@ -373,7 +373,8 @@ def readentrance(filename):
|
||||
# need to cope with duplicates
|
||||
message = f" ! FAILED to get precisely one ENTRANCE when updating using: cave_entrance/{filename}"
|
||||
DataIssue.objects.create(parser="caves", message=message, url=f"/cave/{slug}/edit/")
|
||||
kents = EntranceSlug.objects.all().filter(entrance=e, slug=slug, primary=primary)
|
||||
# kents = EntranceSlug.objects.all().filter(entrance=e, slug=slug, primary=primary)
|
||||
kents = EntranceSlug.objects.all().filter(entrance=e, slug=slug)
|
||||
for k in kents:
|
||||
message = " ! - DUPLICATE in db. entrance:" + str(k.entrance) + ", slug:" + str(k.slug())
|
||||
DataIssue.objects.create(parser="caves", message=message, url=f"/cave/{slug}/edit/")
|
||||
@@ -509,7 +510,7 @@ def readcave(filename):
|
||||
newArea.save()
|
||||
areas_xslug[area_slug] = newArea
|
||||
c.area.add(newArea)
|
||||
primary = True
|
||||
primary = True # this sets the first thing we find to be primary=True and all the others =False
|
||||
for slug in slugs:
|
||||
if slug in caves_xslug:
|
||||
cs = caves_xslug[slug]
|
||||
|
||||
Reference in New Issue
Block a user