Skip to content

Commit

Permalink
Get the description i available. See #133
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Apr 3, 2024
1 parent c81b34a commit 8a3c0c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def make_feed(results, title='Test', description='test', link='https://openstate
fe = fg.add_entry()
fe.title(title)
fe.link(href=urljoin(app.config['JODAL_URL'], 'doc/' + i['_source']['id']))
fe.description(i['_source'].get('description', ''))
desc = i.get('description_clean', '')
if desc.strip() != '':
fe.description(desc)
fe.guid(i['_source']['id'], permalink=False) # Or: fe.guid(article.url, permalink=True)
fe.pubDate(pubDate)
response = make_response(fg.rss_str())
Expand Down
3 changes: 3 additions & 0 deletions src/AddColumnBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<option value="168h" selected={frequency == '168h'}>Elke week</option>
</select>
</div>
<div class="cell cell-auto-flex flexy">
<a href="#" id="rss-button mdc-button" class="subscribe-button mdc-button">RSS</a>
</div>
<div class="cell cell-auto-flex flexy">
<Button class="subscribe-button input-full-width" style="width: 100%" on:click={(e) => handleSubscription(e)}>Maak alert aan</Button>
<p class="input-help">Afmelden kan met &eacute;&eacute;n klik.</p>
Expand Down

0 comments on commit 8a3c0c5

Please sign in to comment.