Skip to content

Commit

Permalink
change to regular schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
yufree committed Apr 10, 2024
1 parent 761997b commit aca6eb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Weekly Article Matching
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 0'

Expand Down
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit aca6eb6

Please sign in to comment.