Skip to content

Commit 353cee2

Browse files
author
Bastien Guerry
committed
src/codegouvfr-output-data.clj: Remove duplicate function
1 parent 2894736 commit 353cee2

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/codegouvfr-output-data.clj

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -501,24 +501,6 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
501501
(with-open [file (io/writer "codegouvfr-repositories.csv")]
502502
(csv/write-csv file (repositories-to-csv))))
503503

504-
(defn- output-latest-sill-xml []
505-
(log/info "Output latest-sill.xml...")
506-
(->> (fetch-json (:sill urls))
507-
(sort-by #(java.util.Date. (:referencedSinceTime %)))
508-
reverse
509-
(take 10)
510-
(map #(let [link (str "https://code.gouv.fr/sill/detail?name=" (:name %))]
511-
{:title (str "Nouveau logiciel au SILL : " (:name %))
512-
:link link
513-
:guid link
514-
:description (:description %)
515-
:pubDate (.toInstant (java.util.Date. (:referencedSinceTime %)))}))
516-
(rss/channel-xml
517-
{:title "code.gouv.fr - Nouveaux logiciels libres au SILL - New SILL entries"
518-
:link "https://code.gouv.fr/data/latest-sill.xml"
519-
:description "code.gouv.fr - Nouveaux logiciels libres au SILL - New SILL entries"})
520-
(spit "latest-sill.xml")))
521-
522504
(defn- output-latest-releases-xml []
523505
(log/info "Output latest-releases.xml...")
524506
(->> @awesome
@@ -690,7 +672,7 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
690672
{:title (str "Nouveau logiciel au SILL : " (:name item))
691673
:link link
692674
:guid link
693-
:description (:function item)
675+
:description (:description item)
694676
:pubDate (to-inst (str (java.time.Instant/ofEpochMilli (:referencedSinceTime item))))})))
695677
(rss/channel-xml
696678
{:title "code.gouv.fr - Nouveaux logiciels libres au SILL - New SILL entries"
@@ -719,7 +701,6 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
719701
(output-owners-json :full)
720702
(output-owners-csv)
721703
(output-annuaire-sup)
722-
(output-latest-sill-xml)
723704
(output-repositories-json)
724705
(output-repositories-json :full)
725706
(output-repositories-csv)
@@ -755,5 +736,3 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
755736
(display-data!)))))
756737

757738
(-main *command-line-args*)
758-
759-

0 commit comments

Comments
 (0)