Commit e4181cae authored by chris's avatar chris
Browse files

Fixed bug causing file to be unnecessarily re-written on every request.

parent f9d4463c
VERSION = (0, 1, 14)
VERSION = (0, 2, 0)
__version__ = '.'.join(map(str, VERSION))
\ No newline at end of file
......@@ -69,7 +69,11 @@ class File(models.Model):
def dump(self, check_hash=False):
"""
Writes the file content to the filesystem.
If check_hash is true, clears the stored file hash and recalculates.
"""
if is_fresh(self.name, self._content_hash):
return
write_file(
self.name,
self.content,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment