2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

fix broken tick-lists in wallets

This commit is contained in:
Philip Sargent 2023-03-21 18:23:07 +00:00
parent 6b3cb9f02e
commit ead3f8dc8b

View File

@ -46,7 +46,9 @@ class Wallet(models.Model):
if len(wyear) != 4 or len(wname) !=6:
# no contents.json for old-style wallets
return None
# but this ruined all the tick-list displays.. why?!
# return None
pass
jsonfile = Path(settings.DRAWINGS_DATA, "walletjson") / wyear / wname / "contents.json"
if not Path(jsonfile).is_file():