From b71d8bf7491e08a652ff82cd971d4ed490309b2f Mon Sep 17 00:00:00 2001 From: Jason Harvey Date: Fri, 10 Aug 2012 12:41:35 -0700 Subject: [PATCH] Store a last_visit time on the Account thing. --- r2/r2/models/account.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r2/r2/models/account.py b/r2/r2/models/account.py index 652caf535..b8d9815e4 100644 --- a/r2/r2/models/account.py +++ b/r2/r2/models/account.py @@ -225,6 +225,9 @@ class Account(Thing): LastModified.touch(self._fullname, "Visit") + self.last_visit = int(time.time()) + self._commit() + def make_cookie(self, timestr=None): if not self._loaded: self._load()