Show More
@@ -1004,7 +1004,8 b' class Repository(Base, BaseModel):' | |||||
1004 | cs_cache = cs_cache.__json__() |
|
1004 | cs_cache = cs_cache.__json__() | |
1005 |
|
1005 | |||
1006 | if cs_cache != self.changeset_cache: |
|
1006 | if cs_cache != self.changeset_cache: | |
1007 | last_change = cs_cache.get('date') or self.last_change |
|
1007 | _default = datetime.datetime.fromtimestamp(0) | |
|
1008 | last_change = cs_cache.get('date') or self.last_change or _default | |||
1008 | log.debug('updated repo %s with new cs cache %s' % (self, cs_cache)) |
|
1009 | log.debug('updated repo %s with new cs cache %s' % (self, cs_cache)) | |
1009 | self.updated_on = last_change |
|
1010 | self.updated_on = last_change | |
1010 | self.changeset_cache = cs_cache |
|
1011 | self.changeset_cache = cs_cache |
General Comments 0
You need to be logged in to leave comments.
Login now