mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-04-03 09:21:48 +01:00
Fix display of expoyear
This commit is contained in:
parent
4efeefe6c9
commit
6ec7071ffc
@ -482,13 +482,14 @@ class QM(TroggleModel):
|
|||||||
else:
|
else:
|
||||||
cavestr = ""
|
cavestr = ""
|
||||||
if self.expoyear:
|
if self.expoyear:
|
||||||
expoyearstr = str(self.cave.slug())[5:]
|
expoyearstr = str(self.expoyear)
|
||||||
else:
|
else:
|
||||||
expoyearstr = self.expoyear
|
expoyearstr = str(self.cave.slug())[5:9]
|
||||||
if self.blockname:
|
if self.blockname:
|
||||||
blocknamestr = self.blockname
|
blocknamestr = str(self.blockname)
|
||||||
else:
|
else:
|
||||||
blocknamestr = ""
|
blocknamestr = ""
|
||||||
|
#return f'{self.cave.slug()[5:]}-{self.expoyear}-{self.blockname}{self.number}{self.grade}'
|
||||||
return f'{cavestr}-{expoyearstr}-{blocknamestr}{self.number}{self.grade}'
|
return f'{cavestr}-{expoyearstr}-{blocknamestr}{self.number}{self.grade}'
|
||||||
|
|
||||||
def newslug(self):
|
def newslug(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user