aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-03 16:18:24 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-03 16:18:24 -0800
commit2edead4d4da0c2f14b7923e8b18889b2358cd52d (patch)
tree5264bb9e245f1c9b19deea807c66f88a17b7f898
parentcd5836ded746ba67159ec9014b75c3dc07ddc48c (diff)
sort posts by time posted
-rw-r--r--rasis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rasis.py b/rasis.py
index 3ccb421..373328e 100644
--- a/rasis.py
+++ b/rasis.py
@@ -173,7 +173,7 @@ def main():
return
data = response.json()
- news_posts = data["news_posts"]
+ news_posts = sorted(data["news_posts"], key=lambda x: x.get('timestamp', 0))
posts_to_make = []
for post in news_posts:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage