mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #2414 from jfbaillette/patch-1
Resolve mtime truncation. Fixes #2412
This commit is contained in:
commit
cdc999dd28
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ class StaticGenerator(Generator):
|
|||
save_as = os.path.join(self.output_path, staticfile.save_as)
|
||||
s_mtime = os.path.getmtime(source_path)
|
||||
d_mtime = os.path.getmtime(save_as)
|
||||
return s_mtime > d_mtime
|
||||
return s_mtime - d_mtime > 0.000001
|
||||
|
||||
def _link_or_copy_staticfile(self, sc):
|
||||
if self.settings['STATIC_CREATE_LINKS']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue