extract ipe fetch from main
This commit is contained in:
parent
5f5c08798a
commit
ca58802500
5 changed files with 30 additions and 1 deletions
|
@ -4,6 +4,6 @@ pkgs.mkShell {
|
||||||
buildInputs = [ pkgs.libspatialite ];
|
buildInputs = [ pkgs.libspatialite ];
|
||||||
nativeBuildInputs = [ pkgs.sqlite pkgs.cargo pkgs.rustc pkgs.poetry ];
|
nativeBuildInputs = [ pkgs.sqlite pkgs.cargo pkgs.rustc pkgs.poetry ];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
LD_LIBRARY_PATH=${pkgs.libspatialite}/lib:LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=${pkgs.libspatialite}/lib:$LD_LIBRARY_PATH
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
3
webapp/.gitignore
vendored
Normal file
3
webapp/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
__pycache__
|
||||||
|
/config.ini
|
||||||
|
.vscode
|
0
webapp/ipe_fetcher/__init__.py
Normal file
0
webapp/ipe_fetcher/__init__.py
Normal file
8
webapp/ipe_fetcher/axione.py
Normal file
8
webapp/ipe_fetcher/axione.py
Normal file
|
@ -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"
|
18
webapp/ipe_fetcher/model.py
Normal file
18
webapp/ipe_fetcher/model.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue