diff --git a/Main.hs b/Main.hs index 43aa764..50db60a 100644 --- a/Main.hs +++ b/Main.hs @@ -13,6 +13,7 @@ import Timestamp import Preview import Yesod import Config +import Nrdb data ProtocolSeven = ProtocolSeven @@ -56,6 +57,10 @@ getHomeR = defaultLayout $ do let bbout = map show $ catMaybes $ inBoth (bx ib) (tail $ bx b) let dpout = sort $ map show $ map (\(Ir n) -> n) i let pr = getPreview ts + let (pdi,pdo,bbi,bbo) = extractPreview pr + let nrdbFormat = nrdbSearch (((map (\(Ir n) -> n) i) ++ (map (\(Or n _) -> n) o)),(catMaybes (bx b))) + let nrdbIn = nrdbSearch (pdi,catMaybes [bbi]) + let nrdbOut = nrdbSearch (pdo,catMaybes [bbo]) setTitle "Protocol Seven" toWidget [lucius| html { @@ -108,6 +113,7 @@ getHomeR = defaultLayout $ do display: flex; flex-direction: row; flex-wrap: wrap; + padding: 10px; } ul { @@ -134,6 +140,7 @@ getHomeR = defaultLayout $ do toWidgetBody [hamlet|

Format for #{showMonth month} #{year}: + Click Here for NetrunnerDB

Evergreen: @@ -153,6 +160,7 @@ getHomeR = defaultLayout $ do $maybe (pin, pout, pbin, pbout) <- pr

In: + Click Here for NetrunnerDB