From 707f90daa6d0780cb621e63d3697baaf0996dd6d Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 12 Jun 2008 20:36:12 +0000 Subject: Add a last_visit field --- (limited to 'globalhistory.py') diff --git a/globalhistory.py b/globalhistory.py index a0ad1b7..811de7e 100644 --- a/globalhistory.py +++ b/globalhistory.py @@ -14,6 +14,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +from datetime import datetime + from xpcom import components from xpcom.components import interfaces from xpcom.server.factory import Factory @@ -42,6 +44,7 @@ class GlobalHistory: place = self._store.lookup_place(uri.spec) if place: place.visits += 1 + place.last_visit = datetime.now() self._store.update_place(place) else: place = places.Place(uri.spec) -- cgit v0.9.1