Skip to content

Commit 6cd2148

Browse files
committed
filter on <= 5 stargazers
1 parent 91efe7b commit 6cd2148

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Project.elm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,14 @@ getStargazers repoName env =
182182
, cachePath = Nothing
183183
}
184184
|> BackendTask.allowFatal
185-
|> BackendTask.map Just
185+
|> BackendTask.map
186+
(\stargazers ->
187+
if stargazers > 5 then
188+
Just stargazers
189+
190+
else
191+
Nothing
192+
)
186193

187194

188195

0 commit comments

Comments
 (0)