filter out dead repos from the intro
This commit is contained in:
parent
74cf65a4dd
commit
ec0493fa4d
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@ import Utility.DataUnits
|
|||
import Types.Key
|
||||
import qualified Remote
|
||||
import Logs.Web (webUUID)
|
||||
import Logs.Trust
|
||||
import Annex.UUID (getUUID)
|
||||
|
||||
import Yesod
|
||||
|
@ -173,7 +174,8 @@ introDisplay ident = do
|
|||
remotelist <- liftIO $ runThreadState (threadState webapp) $ do
|
||||
u <- getUUID
|
||||
rs <- map Remote.uuid <$> Remote.remoteList
|
||||
Remote.prettyListUUIDs $ filter (/= webUUID) $ nub $ u:rs
|
||||
rs' <- snd <$> trustPartition DeadTrusted rs
|
||||
Remote.prettyListUUIDs $ filter (/= webUUID) $ nub $ u:rs'
|
||||
let n = length remotelist
|
||||
let numrepos = show n
|
||||
let notenough = n < 2
|
||||
|
|
Loading…
Reference in a new issue