mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 16:51:54 +00:00
remove print stmts
This commit is contained in:
parent
c8c21fbe04
commit
b522899216
@ -111,12 +111,12 @@ class Wallet(models.Model):
|
|||||||
|
|
||||||
def get_json(self):
|
def get_json(self):
|
||||||
"""Read the JSON file for the wallet and do stuff
|
"""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"""
|
import DataIssue locally to prevent import cycle problem"""
|
||||||
|
|
||||||
if hasattr(self, "JSONdata"):
|
if hasattr(self, "JSONdata"):
|
||||||
print(f'seen it already {self}')
|
|
||||||
return self.JSONdata
|
return self.JSONdata
|
||||||
|
|
||||||
# :drawings: walletjson/2022/2022#01/contents.json
|
# :drawings: walletjson/2022/2022#01/contents.json
|
||||||
@ -184,7 +184,6 @@ class Wallet(models.Model):
|
|||||||
def allcaves(self):
|
def allcaves(self):
|
||||||
"""Reads all the JSON data just to get the JSON date."""
|
"""Reads all the JSON data just to get the JSON date."""
|
||||||
if not (jsondata := self.get_json()): # WALRUS
|
if not (jsondata := self.get_json()): # WALRUS
|
||||||
print(f"Failed to read JSON file {self}")
|
|
||||||
return None
|
return None
|
||||||
cavelist = jsondata["cave"]
|
cavelist = jsondata["cave"]
|
||||||
if type(cavelist) is list:
|
if type(cavelist) is list:
|
||||||
|
Loading…
Reference in New Issue
Block a user