summaryrefslogtreecommitdiff
path: root/hnnews.py
diff options
context:
space:
mode:
authorTianhao Wang <shrik3@riseup.net>2023-03-29 11:42:14 +0200
committerTianhao Wang <shrik3@riseup.net>2023-03-29 11:42:14 +0200
commit7c19ce4ea2c9ae542d743cbdd19e4c0fcf4e3daa (patch)
treea3b1b7296a6dca48b24d1c14a200a99dabd440d4 /hnnews.py
parent5331214b8654d9b8e2441f9ca568a19b6afa7347 (diff)
improve structure
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: