diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 0269036..0ea808d 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,8 +1,5 @@ name: Weekly Article Matching on: - push: - branches: - - master schedule: - cron: '0 0 * * 0' diff --git a/update.py b/update.py index 1231d3a..b91e202 100644 --- a/update.py +++ b/update.py @@ -41,7 +41,7 @@ def get_pubmed_abstracts(rss_url): feed = feedparser.parse(rss_url) # Calculate the date one week ago - one_week_ago = datetime.now(timezone.utc) - timedelta(weeks=6) + one_week_ago = datetime.now(timezone.utc) - timedelta(weeks=1) # Iterate over entries in the PubMed RSS feed and extract abstracts and URLs for entry in feed.entries: