Skip to content

Commit

Permalink
Fix URL formatting issue in graham.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ofou committed Mar 29, 2024
1 parent 5fa2e56 commit 86d25cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graham.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def update_links(match):

for entry in reversed(rss.entries):
URL = entry["link"]
if "http://www.paulgraham.com/https://" in URL:
URL = URL.replace("http://www.paulgraham.com/https://", "https://")
TITLE = entry["title"]

try:
Expand Down Expand Up @@ -94,8 +96,6 @@ def update_links(match):
csvwriter = csv.DictWriter(f, fieldnames=fieldnames)
csvwriter.writeheader()

DATE = find_date(entry["link"])

line = [ART_NO, TITLE, DATE, URL]

csvwriter.writerow(line)
Expand Down

0 comments on commit 86d25cf

Please sign in to comment.