2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 07:57:09 +00:00

fix QM regex for number and rearrange url code

This commit is contained in:
Philip Sargent
2022-07-20 17:02:38 +03:00
parent 549c1649b4
commit a215ebd62c
4 changed files with 17 additions and 25 deletions

View File

@@ -507,7 +507,7 @@ class QM(TroggleModel):
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}'
return f'{cavestr}-{expoyearstr}-{self.number}{self.grade}-{blocknamestr}'
def get_completion_url(self):
'''assumes html file named is in same folder as cave description file