Skip to content

Commit

Permalink
chore(pipeline): clean up settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Dec 8, 2023
1 parent 30e377a commit 7af2569
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline/dags/import_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def _extract(
mes_aides,
reseau_alpha,
soliguide,
un_jeune_une_solution,
utils,
)

Expand All @@ -81,7 +82,7 @@ def _extract(
"finess": utils.extract_http_content,
"mes-aides": mes_aides.extract,
"siao": utils.extract_http_content,
"un-jeune-une-solution": utils.extract_http_content,
"un-jeune-une-solution": un_jeune_une_solution.extract,
"soliguide": soliguide.extract,
"monenfant": utils.extract_http_content,
"reseau-alpha": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from data_inclusion.scripts.tasks import utils


def extract(id: str, url: str, **kwargs) -> bytes:
return utils.extract_http_content(url.rstrip("/") + "/" + id)

0 comments on commit 7af2569

Please sign in to comment.