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

remove print stmts

This commit is contained in:
Philip Sargent 2023-10-23 20:54:38 +03:00
parent c8c21fbe04
commit b522899216

View File

@ -111,12 +111,12 @@ class Wallet(models.Model):
def get_json(self):
"""Read the JSON file for the wallet and do stuff
Do it every time it is queried, to be sure the result is fresh
Do it every time it is queried, to be sure the result is fresh.. well, no.
Do it every time we have a new python instance.
import DataIssue locally to prevent import cycle problem"""
if hasattr(self, "JSONdata"):
print(f'seen it already {self}')
return self.JSONdata
# :drawings: walletjson/2022/2022#01/contents.json
@ -184,7 +184,6 @@ class Wallet(models.Model):
def allcaves(self):
"""Reads all the JSON data just to get the JSON date."""
if not (jsondata := self.get_json()): # WALRUS
print(f"Failed to read JSON file {self}")
return None
cavelist = jsondata["cave"]
if type(cavelist) is list: