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: if len(wyear) != 4 or len(wname) !=6:
# no contents.json for old-style wallets # 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" jsonfile = Path(settings.DRAWINGS_DATA, "walletjson") / wyear / wname / "contents.json"
if not Path(jsonfile).is_file(): if not Path(jsonfile).is_file():