diff --git a/shell.nix b/shell.nix index 770f55c..656974c 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,6 @@ pkgs.mkShell { buildInputs = [ pkgs.libspatialite ]; nativeBuildInputs = [ pkgs.sqlite pkgs.cargo pkgs.rustc pkgs.poetry ]; shellHook = '' - LD_LIBRARY_PATH=${pkgs.libspatialite}/lib:LD_LIBRARY_PATH + export LD_LIBRARY_PATH=${pkgs.libspatialite}/lib:$LD_LIBRARY_PATH ''; } diff --git a/webapp/.gitignore b/webapp/.gitignore new file mode 100644 index 0000000..7f7abc0 --- /dev/null +++ b/webapp/.gitignore @@ -0,0 +1,3 @@ +__pycache__ +/config.ini +.vscode \ No newline at end of file diff --git a/webapp/ipe_fetcher/__init__.py b/webapp/ipe_fetcher/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/webapp/ipe_fetcher/axione.py b/webapp/ipe_fetcher/axione.py new file mode 100644 index 0000000..51a8056 --- /dev/null +++ b/webapp/ipe_fetcher/axione.py @@ -0,0 +1,8 @@ +# const AXIONE_ETAT_DEPLOYE = +# "DEPLOYE" +# const AXIONE_ETAT_DEPLOIEMENT = "EN COURS DE DEPLOIEMENT" +# const AXIONE_ETAT_ABANDONNE = "ABANDONNE" +# const AXIONE_ETAT_CIBLE = "CIBLE" +# const AXIONE_ETAT_SIGNE = "SIGNE" +# const AXIONE_ETAT_RAD_DEPLOIEMENT = "RAD EN COURS DE DEPLOIEMENT" +# const AXIONE_ETAT_RACCORDABLE_DEMANDE = "RACCORDABLE DEMANDE" diff --git a/webapp/ipe_fetcher/model.py b/webapp/ipe_fetcher/model.py new file mode 100644 index 0000000..a142ea3 --- /dev/null +++ b/webapp/ipe_fetcher/model.py @@ -0,0 +1,18 @@ +from typing import TypedDict + +class FAIEligibilityState(TypedDict): + FAI: str + isEligible: bool + ftthStatus: str + reasonNotEli :str + +class Building(TypedDict): + x: str + y: str + idImm: str + numVoieImm: str + typeVoieImm: str + nomVoieImm: str + AquilenetEligStatus: FAIEligibilityState + AxioneEligStatus: FAIEligibilityState + othersEligStatus: FAIEligibilityState