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

add survey by year to wallets for each cave: Charlotte's request

This commit is contained in:
2025-09-26 20:38:18 +03:00
parent 1370524479
commit 400fd8430e
4 changed files with 24 additions and 3 deletions

View File

@@ -246,6 +246,12 @@ class SurvexBlock(models.Model):
def isSurvexBlock(self): # Function used in templates
return True
def year(self):
if self.date:
return self.date.year
else:
return 1970
def DayIndex(self):
"""This is used to set different colours for the different trips on