Mercurial > kallithea
changeset 3226:226013bac971 beta
update repo-info shouldn't allow setting empty values NEVER !
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 25 Jan 2013 02:33:52 +0100 |
parents | f9540f9c5999 |
children | 99ce5d097a09 |
files | rhodecode/model/db.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/db.py Fri Jan 25 02:32:00 2013 +0100 +++ b/rhodecode/model/db.py Fri Jan 25 02:33:52 2013 +0100 @@ -1004,7 +1004,8 @@ cs_cache = cs_cache.__json__() if cs_cache != self.changeset_cache: - last_change = cs_cache.get('date') or self.last_change + _default = datetime.datetime.fromtimestamp(0) + last_change = cs_cache.get('date') or self.last_change or _default log.debug('updated repo %s with new cs cache %s' % (self, cs_cache)) self.updated_on = last_change self.changeset_cache = cs_cache