Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 committed Aug 20, 2024
1 parent 7c86345 commit ad496e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/feed_bot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import re

import feedparser
from dateutil import parser
Expand Down Expand Up @@ -39,6 +40,8 @@ def main():
if "content" in entry
else ""
)
# collapse 2 and more empty lines into one
entry["content"] = re.sub(r"\n{3,}", "\n\n", entry["content"])

formatted_text = format_string.format(**entry)

Expand Down
5 changes: 1 addition & 4 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
feeds:
- url: https://galaxyproject.org/eu/feed.atom

format: "📝 New blog post Released!\n\n{content}\n\n{link}"
format: "📝 New blog post Released!\n{link}\n\n{content}"

media:
- mastodon-eu-freiburg
Expand All @@ -22,21 +22,18 @@ feeds:
- UseGalaxy
- GalaxyProject
- UniFreiburg
- usegalaxy
- EOSC
- EuroScienceGateway
bluesky-galaxyproject:
- UseGalaxy
- GalaxyProject
- UniFreiburg
- usegalaxy
- EOSC
- EuroScienceGateway
linkedin-galaxyproject:
- UseGalaxy
- GalaxyProject
- UniFreiburg
- usegalaxy
- EOSC
- EuroScienceGateway

Expand Down

0 comments on commit ad496e5

Please sign in to comment.