support loading link indexes with extra keys

This commit is contained in:
Nick Sweeting 2019-03-27 10:31:07 -04:00
parent 98870ba428
commit 19e1c35f1a
2 changed files with 10 additions and 4 deletions

View file

@ -164,7 +164,7 @@ class Link:
from util import ts_to_date
most_recent = min(
(result.start_ts
(ts_to_date(result.start_ts)
for method in self.history.keys()
for result in self.history[method]),
default=None,
@ -176,7 +176,7 @@ class Link:
from util import ts_to_date
most_recent = max(
(result.start_ts
(ts_to_date(result.start_ts)
for method in self.history.keys()
for result in self.history[method]),
default=None,