Skip to content

Commit

Permalink
Fix datetime comparison in views.story.download
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymal committed Sep 11, 2023
1 parent 870c9f3 commit 8d4f9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mini_fiction/views/story.py
Expand Up @@ -636,7 +636,7 @@ def download(story_id, filename):

if (
not storage_path.exists() or
datetime.fromtimestamp(storage_path.stat().st_mtime) < story.updated or
datetime.utcfromtimestamp(storage_path.stat().st_mtime) < story.updated or
debug
):
data = fmt.render(
Expand Down

0 comments on commit 8d4f9af

Please sign in to comment.