home: Hide specific instances from home page
This commit is contained in:
parent
52dbfbf56e
commit
a74149f4ef
2 changed files with 5 additions and 1 deletions
|
|
@ -87,6 +87,10 @@ type LastEdit struct {
|
|||
func (bs BundleStatistics) LastEdit() (le LastEdit) {
|
||||
for _, bundle := range bs.Bundles {
|
||||
time := bundle.LastEdit.Time()
|
||||
// skip invalid times
|
||||
if time.Unix() <= 0 {
|
||||
continue
|
||||
}
|
||||
if time.After(le.Time) {
|
||||
le.Valid = true
|
||||
le.Time = time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue