From fb52852eebd0387e9e7c5d40397f5312181594a1 Mon Sep 17 00:00:00 2001 From: samerbam Date: Wed, 7 Jun 2023 15:04:28 -0400 Subject: [PATCH] remove https:// --- root/app/runner_notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/app/runner_notify.py b/root/app/runner_notify.py index a971eda..5f0d870 100644 --- a/root/app/runner_notify.py +++ b/root/app/runner_notify.py @@ -16,9 +16,9 @@ def main(config): with open(config.get('locations', 'output'), 'a') as f: #input=/config/fanfiction_file #output=/output/fanfiction_file #/Users/sam/Desktop/workspace/FFFRssLinkGrabber/root/config.default/fanfiction_file for entry in feed.entries: - if entry.link not in lines: + if entry.link.replace('https://', '') not in lines: newworks += 1 - f.write(f"{entry.link}\n") + f.write(f"{entry.link.replace('https://', '')}\n") print(f"Added {newworks} works out of {len(feed.entries)} works to list.")