mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-01-31 23:42:31 +00:00
Do not make an entrance redirect for entrances without there own pages
This commit is contained in:
parent
7ef6b1fcc2
commit
10799e2ce3
@ -228,6 +228,7 @@ def LoadCaveTab():
|
|||||||
newCaveAndEntrance.save()
|
newCaveAndEntrance.save()
|
||||||
|
|
||||||
logging.info("Added CaveAndEntrance "+str(newCaveAndEntrance)+"\n")
|
logging.info("Added CaveAndEntrance "+str(newCaveAndEntrance)+"\n")
|
||||||
|
if line[AutogenFile] != "":
|
||||||
f = flatpages.models.EntranceRedirect(originalURL = line[AutogenFile], entrance = newEntrance)
|
f = flatpages.models.EntranceRedirect(originalURL = line[AutogenFile], entrance = newEntrance)
|
||||||
f.save()
|
f.save()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user