Skip to content

Commit 2954af4

Browse files
committed
Don't output SILL providers anymore
1 parent 7f5afa6 commit 2954af4

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

src/codegouvfr/codegouvfr_output_data.clj

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@
6262
:top_organizations "https://code.gouv.fr/data/top_organizations.yml"
6363
:comptes-organismes-publics "https://code.gouv.fr/data/comptes-organismes-publics.yml"
6464
:fr-public-sector-ospo "https://code.gouv.fr/data/fr-public-sector-ospo.yml"
65-
:awesome-codegouvfr "https://code.gouv.fr/data/awesome-codegouvfr.yml"
66-
:cnll-providers "https://annuaire.cnll.fr/api/prestataires-sill.json"
67-
:cdl-providers "https://comptoir-du-libre.org/public/export/comptoir-du-libre_export_v1.json"})
65+
:awesome-codegouvfr "https://code.gouv.fr/data/awesome-codegouvfr.yml"})
6866

6967
;;; Helper functions
7068

@@ -651,32 +649,6 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
651649
json/generate-string
652650
(spit "formations-logiciels-libres.json"))))
653651

654-
(defn- output-sill-providers []
655-
(let [cdl (->> (fetch-json (:cdl-providers urls))
656-
:softwares
657-
(filter #(not-empty (:sill (:external_resources %))))
658-
(map (juxt #(:id (:sill (:external_resources %)))
659-
#(keep (juxt :name :url
660-
(fn [a] (:website (:external_resources a))))
661-
(:providers %))))
662-
(map (fn [[a b]]
663-
[a (into [] (map (fn [[x y z]]
664-
{:nom x :cdl_url y :website z}) b))])))
665-
cnll (->> (fetch-json (:cnll-providers urls))
666-
(map (juxt :sill_id
667-
#(map (fn [p] (set/rename-keys p {:url :cnll_url}))
668-
(:prestataires %)))))]
669-
(->> (group-by first (concat cdl cnll))
670-
(map (fn [[id l]] [id (flatten (map second l))]))
671-
(filter #(not-empty (second %)))
672-
(map (fn [[id l]]
673-
{:sill_id id
674-
:prestataires (map #(apply merge (val %))
675-
(group-by #(str/lower-case (:nom %)) l))}))
676-
(sort-by :sill_id)
677-
json/generate-string
678-
(spit "sill-prestataires.json"))))
679-
680652
(defn- output-sill-latest-xml []
681653
(when-let [sill (fetch-json (:sill urls))]
682654
(->> sill
@@ -730,7 +702,6 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
730702
(output-awesome-json)
731703
(output-awesome-md))
732704
(output-formations-json)
733-
(output-sill-providers)
734705
(output-sill-latest-xml))
735706

736707
(defn- display-data! []

0 commit comments

Comments
 (0)