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 Types.Key
|
||||||
import qualified Remote
|
import qualified Remote
|
||||||
import Logs.Web (webUUID)
|
import Logs.Web (webUUID)
|
||||||
|
import Logs.Trust
|
||||||
import Annex.UUID (getUUID)
|
import Annex.UUID (getUUID)
|
||||||
|
|
||||||
import Yesod
|
import Yesod
|
||||||
|
@ -173,7 +174,8 @@ introDisplay ident = do
|
||||||
remotelist <- liftIO $ runThreadState (threadState webapp) $ do
|
remotelist <- liftIO $ runThreadState (threadState webapp) $ do
|
||||||
u <- getUUID
|
u <- getUUID
|
||||||
rs <- map Remote.uuid <$> Remote.remoteList
|
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 n = length remotelist
|
||||||
let numrepos = show n
|
let numrepos = show n
|
||||||
let notenough = n < 2
|
let notenough = n < 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue