Mercurial > piecrust2
diff piecrust/sources/generator.py @ 876:d1095774bfcf
refactor: Fix some issues with record/cache entry collisions, add counters.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Jun 2017 07:33:40 -0700 |
parents | 9bb22bbe093c |
children |
line wrap: on
line diff
--- a/piecrust/sources/generator.py Thu Jun 15 07:32:19 2017 -0700 +++ b/piecrust/sources/generator.py Thu Jun 15 07:33:40 2017 -0700 @@ -16,6 +16,7 @@ self._inner_source_name = source_name self._raw_item = '' + self._raw_item_time = time.time() @cached_property def inner_source(self): @@ -31,5 +32,5 @@ return io.StringIO(self._raw_item) def getItemMtime(self, item): - return time.time() + return self._raw_item_time