forked from expo/troggle
Made a prospecting guide and fixed survex station description. Removed parsing of underground descriptions to wikis.
This commit is contained in:
@@ -93,7 +93,10 @@ class SurvexLeg(models.Model):
|
||||
#
|
||||
class SurvexBlockLookUpManager(models.Manager):
|
||||
def lookup(self, name):
|
||||
blocknames = name.split(".")
|
||||
if name == "":
|
||||
blocknames = []
|
||||
else:
|
||||
blocknames = name.split(".")
|
||||
block = SurvexBlock.objects.get(parent=None, survexfile__path="all")
|
||||
for blockname in blocknames:
|
||||
block = SurvexBlock.objects.get(parent=block, name__iexact=blockname)
|
||||
|
||||
Reference in New Issue
Block a user