~etalab/codegouvfr-devel

added ORGAS_LIST_URL environment variable v1 APPLIED

Alain Vagner: 1
 added ORGAS_LIST_URL environment variable

 1 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~etalab/codegouvfr-devel/patches/26957/mbox | git am -3
Learn more about email & git

[PATCH] added ORGAS_LIST_URL environment variable Export this patch

---
 fetch.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fetch.py b/fetch.py
index fb31185..a3c56b9 100644
--- a/fetch.py
+++ b/fetch.py
@@ -2,6 +2,7 @@ from collections import defaultdict
from io import BytesIO
from urllib.request import urlopen
import yaml
import os

from platforms import Detector as PlatformDetector
from storage import save_repos, save_orgs, save_libraries
@@ -11,7 +12,7 @@ def fetch_orgs(detector):
    organizations = []

    resp = urlopen(
        "https://git.sr.ht/~etalab/codegouvfr-sources/blob/test-yaml/comptes-organismes-publics-yaml"
        os.getenv("ORGAS_LIST_URL") or "https://git.sr.ht/~etalab/codegouvfr-sources/blob/test-yaml/comptes-organismes-publics-yaml"
    )
    data = resp.read()

-- 
2.30.0