From 4ead8b702c8fa6b174272de08ca2edb98b9a564b Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Wed, 7 Oct 2009 14:56:44 +0200 Subject: Fix COMPUTE-JOURNAL-LAST-MODIFIED-DATE. Ignore-this: 2f9fcd1deee1673a35bb3ab4936f0fdf darcs-hash:9cd1ac1fdff7b95a9ca59f5aebeb021bd50ebe74 --- journal-content.lisp | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'journal-content.lisp') diff --git a/journal-content.lisp b/journal-content.lisp index b0dd458..b0b9ce8 100644 --- a/journal-content.lisp +++ b/journal-content.lisp @@ -240,22 +240,23 @@ (defun compute-journal-last-modified-date () #.(locally-enable-sql-reader-syntax) - #-clisp (get-universal-time) - #+clisp - (max (compute-script-last-modified-date) - (or (single-object - (select [max [slot-value 'journal-entry 'last-modification]] - :from [journal-entry] - :flatp t)) - 0) - (or (single-object - (select [max [slot-value 'journal-entry 'date]] - :from [journal-entry] - :flatp t)) - 0) - (or (single-object - (select [max [slot-value 'journal-comment 'date]] - :from [journal-comment] - :flatp t)) - 0)) - #.(restore-sql-reader-syntax-state)) + (prog1 + #-clisp (get-universal-time) + #+clisp + (max (compute-script-last-modified-date) + (or (single-object + (select [max [slot-value 'journal-entry 'last-modification]] + :from [journal-entry] + :flatp t)) + 0) + (or (single-object + (select [max [slot-value 'journal-entry 'date]] + :from [journal-entry] + :flatp t)) + 0) + (or (single-object + (select [max [slot-value 'journal-comment 'date]] + :from [journal-comment] + :flatp t)) + 0)) + #.(restore-sql-reader-syntax-state))) -- cgit v1.2.3