5555
parent
d01773db55
commit
79d927ec0a
|
@ -1,10 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="03/01/2024 - 17h30">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="04/01/2024 - 22h30">
|
||||
<change afterPath="$PROJECT_DIR$/Env_Data.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/GlobalVariable.py" beforeDir="false" afterPath="$PROJECT_DIR$/GlobalVariable.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -74,13 +77,6 @@
|
|||
<option name="presentableId" value="Default" />
|
||||
<updated>1680804787304</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00138" summary="30/10/23 - 16h">
|
||||
<created>1698679792176</created>
|
||||
<option name="number" value="00138" />
|
||||
<option name="presentableId" value="LOCAL-00138" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1698679792177</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00139" summary="08/11/2023 - 23h">
|
||||
<created>1699480833289</created>
|
||||
<option name="number" value="00139" />
|
||||
|
@ -417,7 +413,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1704298822115</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="187" />
|
||||
<task id="LOCAL-00187" summary="04/01/2024 - 22h30">
|
||||
<created>1704403529234</created>
|
||||
<option name="number" value="00187" />
|
||||
<option name="presentableId" value="LOCAL-00187" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1704403529234</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="188" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
@ -432,7 +435,6 @@
|
|||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="04/12/2023 - 21h" />
|
||||
<MESSAGE value="05/12/2023 - 21h" />
|
||||
<MESSAGE value="06/12/2023 - 21h" />
|
||||
<MESSAGE value="07/12/2023 - 11h30" />
|
||||
|
@ -457,6 +459,7 @@
|
|||
<MESSAGE value="31/12/2023- 18h" />
|
||||
<MESSAGE value="01/01/2024- 18h" />
|
||||
<MESSAGE value="03/01/2024 - 17h30" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="03/01/2024 - 17h30" />
|
||||
<MESSAGE value="04/01/2024 - 22h30" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="04/01/2024 - 22h30" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,13 @@
|
|||
"""
|
||||
Ce fichier contient les paramettres liés à un environnement :
|
||||
Liste des environnements :
|
||||
- Developpement (DEV)
|
||||
- Recette (REC)
|
||||
- Demonstration (DEM)
|
||||
- Production (PROD)
|
||||
"""
|
||||
|
||||
#MYSY_ENV = "PROD"
|
||||
#MYSY_ENV = "REC"
|
||||
#MYSY_ENV = "DEM"
|
||||
MYSY_ENV = "DEV"
|
|
@ -9,14 +9,12 @@ import logging
|
|||
from autocorrect import Speller
|
||||
from nltk.corpus import stopwords
|
||||
import ela_spacy_common as lsc
|
||||
|
||||
import Env_Data as ENV_DATA
|
||||
"""
|
||||
Cette variable definit l'environnement de travail
|
||||
"""
|
||||
#MYSY_ENV = "PROD"
|
||||
#MYSY_ENV = "REC"
|
||||
#MYSY_ENV = "DEM"
|
||||
MYSY_ENV = "DEV"
|
||||
|
||||
MYSY_ENV = ENV_DATA.MYSY_ENV
|
||||
|
||||
# Cette variable definit l'url de base du server
|
||||
CLIENT_URL_BASE = ""
|
||||
|
|
1263
Log/log_file.log
1263
Log/log_file.log
File diff suppressed because it is too large
Load Diff
12
main.py
12
main.py
|
@ -2858,6 +2858,18 @@ def get_List_metier_formation_JSON():
|
|||
return jsonify(status=localStatus, message=message )
|
||||
|
||||
|
||||
"""
|
||||
API pour recupérer tout le contenu valide de la collection : liste_domaine_metier
|
||||
"""
|
||||
@app.route('/myclass/api/get_List_all_metier_formation/', methods=['POST','GET'])
|
||||
@crossdomain(origin='*')
|
||||
def get_List_all_metier_formation():
|
||||
# On recupere le corps (payload) de la requete
|
||||
payload = mycommon.strip_dictionary (request.form.to_dict())
|
||||
print(" ### get_List_all_metier_formation : payload = ",str(payload))
|
||||
localStatus, message= mycommon.get_List_all_metier_formation()
|
||||
return jsonify(status=localStatus, message=message )
|
||||
|
||||
|
||||
|
||||
"""
|
||||
|
|
|
@ -3654,6 +3654,31 @@ def get_List_metier_formation_JSON():
|
|||
return False, " Impossible de récupérer la liste des métiers de formation"
|
||||
|
||||
|
||||
"""
|
||||
Cette fonction retourne le contenue de la collection :liste_domaine_metier
|
||||
"""
|
||||
def get_List_all_metier_formation():
|
||||
try:
|
||||
coll_liste_domaine_metier = MYSY_GV.dbname['liste_domaine_metier']
|
||||
myquery = {}
|
||||
myquery['valide'] = "1"
|
||||
|
||||
RetObject = []
|
||||
val_tmp = 1
|
||||
|
||||
for retval in coll_liste_domaine_metier.find({'valide':'1', 'locked':'0'}):
|
||||
user = retval
|
||||
user['id'] = str(val_tmp)
|
||||
val_tmp = val_tmp + 1
|
||||
RetObject.append(JSONEncoder().encode(user))
|
||||
|
||||
return True, RetObject
|
||||
|
||||
except Exception as e:
|
||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||
print(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
|
||||
return False, " Impossible de récupérer la liste des métiers de formation"
|
||||
|
||||
|
||||
"""
|
||||
Cette fonction retourne un texte sans les tag html
|
||||
|
|
Loading…
Reference in New Issue