forked from expo/troggle
Wallets by year and by cave
This commit is contained in:
@@ -190,6 +190,16 @@ class Wallet(models.Model):
|
||||
raise
|
||||
|
||||
return waldata
|
||||
|
||||
def year(self):
|
||||
if self.walletname[4] != "#":
|
||||
return None
|
||||
year = int(self.walletname[0:4])
|
||||
if year < 1976 or year > 2050:
|
||||
return None
|
||||
else:
|
||||
return str(year)
|
||||
|
||||
|
||||
# Yes this is horribly, horribly inefficient, esp. for a page that have date, people and cave in it
|
||||
def date(self):
|
||||
|
||||
Reference in New Issue
Block a user