Mercurial > piecrust2
diff piecrust/baking/worker.py @ 721:234d0c7c02cf
bake: Add the timestamp of the page to each record entry.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 May 2016 20:15:30 -0700 |
parents | ab5c6a8ae90a |
children | c3cb2f9df882 |
line wrap: on
line diff
--- a/piecrust/baking/worker.py Sat May 28 15:43:45 2016 -0700 +++ b/piecrust/baking/worker.py Sun May 29 20:15:30 2016 -0700 @@ -134,11 +134,13 @@ 'source_name': fac.source.name, 'path': fac.path, 'config': None, + 'timestamp': None, 'errors': None} try: page = fac.buildPage() page._load() result['config'] = page.config.getAll() + result['timestamp'] = page.datetime.timestamp() except Exception as ex: logger.debug("Got loading error. Sending it to master.") result['errors'] = _get_errors(ex)