fsfi

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6b6d196beaef9997cbb1f23cb08709c21fa9d41d
parent e27f936d4d95c4a496cf493a122b64ca8d80a771
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri, 17 May 2019 22:01:51 -0400

bin/feed: Add esort.

Diffstat:
bin/feed | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/bin/feed b/bin/feed @@ -171,6 +171,16 @@ def entry(sec, f): return e +def esort(esd): + ids = sorted(esd.keys(), reverse=True) + + es = [] + for id in ids: + es.append(esd[id]) + + return es + + def feed(sec, es): f = template('feed') f = f.replace(F_PH['name'], sec, 2)