Skip to content

Commit 2b5db91

Browse files
committed
src/consolidate-datacodegouvfr.clj: Don't collect archived repos
1 parent 58f90e6 commit 2b5db91

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/consolidate-datacodegouvfr.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@
143143
;; Spit repositories.json
144144
(->>
145145
@repositories
146-
(filter #(and (not-empty (:owner_url (val %)))
147-
(not-empty (:readme (:files (:metadata (val %)))))))
146+
(filter #(let [v (val %)]
147+
(and (not-empty (:owner_url v))
148+
(not-empty (:readme (:files (:metadata v))))
149+
(not (:archived v)))))
148150
(map (fn [[_ v]]
149151
{:u (:updated_at v)
150152
:d (:description v)
151-
:a? (:archived v)
152153
:f? (:fork v)
153154
:t? (:template v)
154155
:c? (false? (empty? (:contributing (:files (:metadata v)))))

0 commit comments

Comments
 (0)