Navigation Menu

Skip to content

Commit

Permalink
add another abs hash
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Nov 16, 2012
1 parent 685728d commit 2a974b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_minify/__init__.py
Expand Up @@ -5,7 +5,7 @@


__license__ = 'BSD'
__version__ = '1.5.7'
__version__ = '1.5.8'
__maintainer__ = 'Rick van Hattem'
__email__ = 'rick@fashiolista.com'
__status__ = 'Production'
Expand Down
2 changes: 1 addition & 1 deletion django_minify/minify.py
Expand Up @@ -277,7 +277,7 @@ def minimize_file_to_cache(self, input_filename):
input_filename = os.path.join(settings.MEDIA_ROOT, self.extension,
'original', input_filename)
digest = hash(open(input_filename).read())
tmp_filename = "%s_%s.tmp" % (input_filename, digest)
tmp_filename = "%s_%s.tmp" % (input_filename, abs(digest))
if self.cache.get(input_filename) != tmp_filename:
self._minimize_file(input_filename, tmp_filename)
self.cache[input_filename] = tmp_filename
Expand Down

0 comments on commit 2a974b7

Please sign in to comment.