changeset 31 | 3e6d0feb115c |
parent 30 | 841d856293a1 |
child 36 | 90af93caef84 |
--- a/pvl/verkko/hosts.py Wed Oct 24 20:46:17 2012 +0300 +++ b/pvl/verkko/hosts.py Wed Oct 24 21:02:33 2012 +0300 @@ -566,12 +566,17 @@ else : # render html - self.hosts = hosts.limit(10) + hosts = hosts.limit(10) # XXX: testing - self.hosts = self.hosts.offset(1) + hosts = hosts.offset(1) - self.t = self.hosts[0].last_seen + self.hosts = list(hosts) + + if self.hosts : + self.t = self.hosts[0].last_seen + else : + self.t = datetime.datetime.now() def title (self) : if self.filters :