2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 08:38:35 +00:00

Working. survex parsing now 2x as fast

This commit is contained in:
2026-01-30 00:29:37 +00:00
parent 89bc27b1f8
commit e5e960ac3f
2 changed files with 30 additions and 23 deletions

View File

@@ -252,7 +252,7 @@ class SurvexBlock(models.Model):
ordering = ("_blockid",)
def __str__(self):
return self.name and str(self.name) or "no_name-#" + str(self.pk) #pk is primary key
return self.name and str(self.name) or "no_name-#" + str(self.pk)[:5] #pk is primary key
def isSurvexBlock(self): # Function used in templates
return True