Skip to content

Commit

Permalink
Remove all print() statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
kocielnik authored and Patryk Kocielnik committed Dec 5, 2024
1 parent 56dcb5e commit 66be6b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions isthisstockgood/Active/Zacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ def __init__(self, ticker_symbol):

def parse(self, response, **kwargs):
if response.status_code != 200:
print(f"{response.status_code}: {response.text}")
return

if not response.text:
print("Response was empty")
return

try:
Expand All @@ -31,12 +29,4 @@ def get_growth_rate(self, text):
result = lines[i+1]

estimate = re.sub(r"[^\d\.]", "", result)

try:
result = float(estimate)
except TypeError:
print(
"Unable to parse growth estimate from: {text}"
)

return float(estimate)
1 change: 0 additions & 1 deletion isthisstockgood/Obsolete/StockRow.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def __init__(self, ticker_symbol):

def parse_json_data(self, data):
try:
print(data)
json_data = json.loads(data)
data_dict = {}
rows = json_data.get("fundamentals", {}).get("rows", [])
Expand Down

0 comments on commit 66be6b9

Please sign in to comment.