|
|
|
@ -58,11 +58,18 @@ def snip_article(article):
|
|
|
|
|
return result + " ... "
|
|
|
|
|
|
|
|
|
|
def sort_files(files):
|
|
|
|
|
m = list(reversed(files))
|
|
|
|
|
return files
|
|
|
|
|
sort = files
|
|
|
|
|
return sort
|
|
|
|
|
|
|
|
|
|
def gather_files():
|
|
|
|
|
return os.listdir('entries/feature/')
|
|
|
|
|
files = []
|
|
|
|
|
feature = os.listdir('entries/feature/')
|
|
|
|
|
for f in feature:
|
|
|
|
|
files.append('entries/feature/' + f)
|
|
|
|
|
weekly = os.listdir('entries/weekly/')
|
|
|
|
|
for f in weekly:
|
|
|
|
|
files.append('entries/weekly/' + f)
|
|
|
|
|
return files
|
|
|
|
|
|
|
|
|
|
# Static
|
|
|
|
|
|
|
|
|
|