diff options
Diffstat (limited to 'hnnews.py')
| -rw-r--r-- | hnnews.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |
