Skip to content

Commit

Permalink
filter new rejects
Browse files Browse the repository at this point in the history
  • Loading branch information
Khemarato Bhikkhu committed Jan 2, 2025
1 parent 3447782 commit 94b2e40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _content/articles/fourfold-protection_saddhatissa.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ pages: "40--46"

The Pāli text with an English translation.

A better translation can be [found here](/canon/caturarakkha).
A better translation can be [found here](/content/canon/caturarakkha).
2 changes: 1 addition & 1 deletion highlights.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
banner_info: <a href="https://commons.wikimedia.org/wiki/File:Nanzen-ji,_a_Zen_Buddhist_temple,_and_its_surroundings,_Kyoto;_November_2016_(01).jpg">雷太</a>, <a href="https://creativecommons.org/licenses/by/2.0">CC BY 2.0</a>
---

{% assign allcontent = site.content | where_exp: "c", "c.external_url or c.drive_links or c.file_links" %}
{% assign allcontent = site.content | where_exp: "c", "c.external_url or c.drive_links or c.file_links" | where_exp: "c", "c.status != 'rejected'" %}
{% capture thisyear %}{{ 'now' | date: "%Y" }}{% endcapture %}
{% assign lastyear = thisyear | minus: 1 %}
<h2>Table of Contents</h2><ul id="toc">
Expand Down
2 changes: 1 addition & 1 deletion scripts/mastoposter.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def write_post_for_item(page: website.ContentFile, include_link=True) -> str:
print("Selecting the next post...", flush=True)
last_few_urls = [p['card']['url'][len(website.baseurl):] for p in last_few_posts if p['card']]
idx_to_post = None
filtered_content = [c for c in website.content if c.external_url or c.drive_links]
filtered_content = [c for c in website.content if (c.external_url or c.drive_links) and c.status != 'rejected']
for ridx, c in enumerate(reversed(filtered_content)):
if c.url in last_few_urls:
break
Expand Down

0 comments on commit 94b2e40

Please sign in to comment.