From b522899216695187f70f8c35aef6c962124d3308 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 23 Oct 2023 20:54:38 +0300 Subject: remove print stmts --- core/models/wallets.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/models/wallets.py') diff --git a/core/models/wallets.py b/core/models/wallets.py index b357344..4fa5ef2 100644 --- a/core/models/wallets.py +++ b/core/models/wallets.py @@ -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,8 +184,7 @@ 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 + return None cavelist = jsondata["cave"] if type(cavelist) is list: for i in cavelist: -- cgit v1.2.3