mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 07:19:53 +00:00
fix sorting
This commit is contained in:
parent
7bee57bcd5
commit
aa159369fd
7
gronk.py
7
gronk.py
@ -60,7 +60,6 @@ class FileMap:
|
|||||||
|
|
||||||
def get_base_url(self):
|
def get_base_url(self):
|
||||||
props = self.get(self.input_dir.joinpath('readme.md'))
|
props = self.get(self.input_dir.joinpath('readme.md'))
|
||||||
print(props)
|
|
||||||
return props['base_url']
|
return props['base_url']
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -249,9 +248,11 @@ class FileMap:
|
|||||||
|
|
||||||
def rfc822_date_sorter_key(date):
|
def rfc822_date_sorter_key(date):
|
||||||
if date is None:
|
if date is None:
|
||||||
return 0
|
ret = 0
|
||||||
|
else:
|
||||||
|
ret = int(dt.strptime(date, '%a, %d %b %Y %H:%M:%S %z').timestamp())
|
||||||
|
|
||||||
int(dt.strptime(date, '%a, %d %b %Y %H:%M:%S %z').timestamp())
|
return ret
|
||||||
|
|
||||||
|
|
||||||
def update_required(src_filepath, output_filepath):
|
def update_required(src_filepath, output_filepath):
|
||||||
|
Loading…
Reference in New Issue
Block a user