Skip to content

Commit

Permalink
Redirect the news url to the feed detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Dec 2, 2024
1 parent d2a7c0d commit d42b0cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"title": "We Need Your Feedback on QGIS Documentation!",
"image": "https://feed.qgis.org/media/feedimages/2024/11/20/docs-survey.jpg",
"content": "<p>We're running a short, anonymous QGIS Documentation User Survey to gather feedback and improve our manuals, guides, and resources. Whether you're a beginner or an experienced user, your input will help us make the documentation better for everyone. The survey will remain open until December 20th.</p>\r\n<p>Please take a moment to share your thoughts!</p>\r\n<p><strong>Take the survey by double-clicking this entry.</strong></p>\r\n<p>Thank you for your time and support!</p>",
"url": "https://docs.google.com/forms/d/e/1FAIpQLSc69ojhNcnm_qWB5TOkwA_WZsn-IA0eKVzdk3dHoH7JCKm6vQ/viewform",
"url": "https://feed.qgis.org/89",
"sticky": false
}
1 change: 1 addition & 0 deletions fetch_feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def fetch_first_feed_entry():

if feed_data and len(feed_data) > 0:
first_entry = feed_data[0]
first_entry['url'] = f"https://feed.qgis.org/{first_entry['pk']}"
os.makedirs(os.path.dirname(feed_file_path), exist_ok=True)
with open(feed_file_path, "w", encoding="utf-8") as f:
json.dump(first_entry, f, ensure_ascii=False, indent=4)
Expand Down

0 comments on commit d42b0cf

Please sign in to comment.