aye
This commit is contained in:
parent
5c4120849c
commit
39702014ed
2
bink.py
2
bink.py
@ -37,7 +37,7 @@ def file_object(path):
|
||||
return (int(split[-1]), split[2], path)
|
||||
|
||||
def generate_feed(before=None, count=200):
|
||||
posts = [file_object(path) for path in glob("/home/**/.bink/*")]
|
||||
posts = [file_object(path) for path in glob("/home/**/.bink/*") if os.path.isfile(path)]
|
||||
if before:
|
||||
posts = [post for post in posts if post[0] < before]
|
||||
posts.sort(key=lambda x: x[0], reverse=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user