summaryrefslogtreecommitdiff
path: root/hnnews.py
diff options
context:
space:
mode:
Diffstat (limited to 'hnnews.py')
-rw-r--r--hnnews.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hnnews.py b/hnnews.py
index d186b84..68e333a 100644
--- a/hnnews.py
+++ b/hnnews.py
@@ -22,7 +22,7 @@ def get_topnews(limit):
if story["type"] != "story":
continue
if "url" not in story.keys():
- print("using alt url")
+ # print("using alt url")
story["url"] = f'https://news.ycombinator.com/item?id={story_id}'
result.append(story)
except Exception as e:
@@ -37,7 +37,7 @@ def get_one_item(id):
if story["type"] != "story":
return None
if "url" not in story.keys():
- print("using alt url")
+ # print("using alt url")
story["url"] = f'https://news.ycombinator.com/item?id={story_id}'
return story
except Exception as e: