2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

Fix display of expoyear

This commit is contained in:
Philip Sargent 2022-07-18 19:19:06 +03:00
parent 4efeefe6c9
commit 6ec7071ffc

View File

@ -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):