forked from expo/troggle
Fix display of expoyear
This commit is contained in:
parent
4efeefe6c9
commit
6ec7071ffc
@ -482,13 +482,14 @@ class QM(TroggleModel):
|
||||
else:
|
||||
cavestr = ""
|
||||
if self.expoyear:
|
||||
expoyearstr = str(self.cave.slug())[5:]
|
||||
expoyearstr = str(self.expoyear)
|
||||
else:
|
||||
expoyearstr = self.expoyear
|
||||
expoyearstr = str(self.cave.slug())[5:9]
|
||||
if self.blockname:
|
||||
blocknamestr = self.blockname
|
||||
blocknamestr = str(self.blockname)
|
||||
else:
|
||||
blocknamestr = ""
|
||||
#return f'{self.cave.slug()[5:]}-{self.expoyear}-{self.blockname}{self.number}{self.grade}'
|
||||
return f'{cavestr}-{expoyearstr}-{blocknamestr}{self.number}{self.grade}'
|
||||
|
||||
def newslug(self):
|
||||
|
Loading…
Reference in New Issue
Block a user