summaryrefslogtreecommitdiffstats
path: root/core/models/wallets.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-23 20:54:38 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-23 20:54:38 +0300
commitb522899216695187f70f8c35aef6c962124d3308 (patch)
treede0415f1bf7bb33db5fd0df3684ebec3658a3467 /core/models/wallets.py
parentc8c21fbe045e5321442017b9d59cd74bed8c92a2 (diff)
downloadtroggle-b522899216695187f70f8c35aef6c962124d3308.tar.gz
troggle-b522899216695187f70f8c35aef6c962124d3308.tar.bz2
troggle-b522899216695187f70f8c35aef6c962124d3308.zip
remove print stmts
Diffstat (limited to 'core/models/wallets.py')
-rw-r--r--core/models/wallets.py7
1 files changed, 3 insertions, 4 deletions
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: