diff options
author | rusinthread <rusinthread@cock.li> | 2017-01-07 23:57:44 +0300 |
---|---|---|
committer | rusinthread <rusinthread@cock.li> | 2017-01-07 23:57:44 +0300 |
commit | 5bf61081d39bf47e756b5c9775e8614036f8fab8 (patch) | |
tree | d9e987ccfd79a7567987c7447c53f19fd2e1fcf9 /gen_md.py | |
parent | b08c2582ec94c34672902ab1579ec584d04d5727 (diff) |
improve decoding of type1 ciphertexts
Diffstat (limited to 'gen_md.py')
-rwxr-xr-x | gen_md.py | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,6 +1,4 @@ #!/usr/bin/python3.4 -import datetime -import time import sys import os import shutil @@ -26,9 +24,6 @@ MD_START = """ """ -def sort_data_by_date(item): - return int(time.mktime(datetime.datetime.strptime(item['date'], '%d/%m/%y').timetuple())) - def resize(in_path, out_path): subprocess.call(['convert', in_path, '-resize', '250', out_path]) @@ -46,8 +41,7 @@ def gen_previews(): resize(img_path, img_preview_path) def main(): - data = load_data() - data = sorted(data, key=sort_data_by_date) + data = load_data(sort='date') print("Generating previews (don't forget to git add them)...") gen_previews() |