26/11/22 - 10h30

master
cherif 2022-11-26 10:57:05 +01:00
parent bcbd0c22fb
commit d0b5aaefce
7 changed files with 4127 additions and 21 deletions

View File

@ -1,16 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="1122d9e2-679f-46d6-8c4f-97e9ae4041b5" name="Changes" comment="22/11/22 - 22h30">
<list default="true" id="1122d9e2-679f-46d6-8c4f-97e9ae4041b5" name="Changes" comment="23/11/22 - 22h30">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/Inscription_mgt.py" 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$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Template/MySy_confirmation_Pre_inscription_formation.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/class_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/class_mgt.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/data_indexees.csv" beforeDir="false" afterPath="$PROJECT_DIR$/data_indexees.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ela_output_test_file_pandas_2.txt" beforeDir="false" afterPath="$PROJECT_DIR$/ela_output_test_file_pandas_2.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/email_inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/email_inscription_mgt.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ela_user_account.py" beforeDir="false" afterPath="$PROJECT_DIR$/ela_user_account.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -112,7 +109,14 @@
<option name="project" value="LOCAL" />
<updated>1669153439012</updated>
</task>
<option name="localTasksCounter" value="7" />
<task id="LOCAL-00007" summary="23/11/22 - 22h30">
<created>1669238673106</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1669238673106</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -132,7 +136,8 @@
<MESSAGE value="18/11/22 - 23h30" />
<MESSAGE value="22/11/22 - 11h30" />
<MESSAGE value="22/11/22 - 22h30" />
<option name="LAST_COMMIT_MESSAGE" value="22/11/22 - 22h30" />
<MESSAGE value="23/11/22 - 22h30" />
<option name="LAST_COMMIT_MESSAGE" value="23/11/22 - 22h30" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>

View File

@ -75,7 +75,7 @@ Au dela de 300 caractère, le système rame
MAX_CARACT = 300
MAX_CARACT_DEDUIT = 150
TOKEN_SIZE = 25
MAX_CARACT_DETAIL = 1000
MAX_CARACT_DETAIL = 10000

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
,index,mots,occurence,moyenne,id_formation,source_field
0,0,connecte,1,0.33,Edu_10003,title
1,1,objet,1,0.33,Edu_10003,title
2,2,iot,1,0.33,Edu_10003,title
0,0,objet,1,0.33,3IL_10003,title
1,1,iot,1,0.33,3IL_10003,title
2,2,connecte,1,0.33,3IL_10003,title

1 index mots occurence moyenne id_formation source_field
2 0 0 connecte objet 1 0.33 Edu_10003 3IL_10003 title
3 1 1 objet iot 1 0.33 Edu_10003 3IL_10003 title
4 2 2 iot connecte 1 0.33 Edu_10003 3IL_10003 title

View File

@ -1,4 +1,4 @@
mots occurence moyenne id_formation source_field
0 connecte 1 0.33 Edu_10003 title
1 objet 1 0.33 Edu_10003 title
2 iot 1 0.33 Edu_10003 title
0 objet 1 0.33 3IL_10003 title
1 iot 1 0.33 3IL_10003 title
2 connecte 1 0.33 3IL_10003 title

View File

@ -16,7 +16,7 @@ La fonction effectue les operations suivantes :
from pymongo import MongoClient
import json
from bson import ObjectId
import re
import email_mgt
import email_mgt as mail
from datetime import datetime
@ -118,15 +118,20 @@ def get_user_objectif(diction):
user = retVal
user['id'] = str(val_tmp)
val_tmp = val_tmp+1
print(" #### user = "+str(user))
print(" #### user 1= "+str(user))
RetObject.append(JSONEncoder().encode(user))
else :
for retVal in coll_name.find(query):
#mycommon.myprint(retVal)
CLEANR = re.compile('<.*?>')
val = re.sub(CLEANR, '', str(retVal['description']))
val = str(val).replace("&nbsp;", " ").replace('\n', '')
user = retVal
user['id'] = str(val_tmp)
user['description'] = val
val_tmp = val_tmp+1
print(" #### user = "+str(user))
print(" #### user 2 = "+str(user))
RetObject.append(JSONEncoder().encode(user))
return True, RetObject
@ -296,8 +301,7 @@ def add_update_user_objectif(diction):
myobjectif['description'] = description
myobjectif['date_souhaite'] = date_souhaite
myobjectif['domaine'] = domaine
myobjectif['niveau'] = domaine
myobjectif['domaine'] = domaine
myobjectif['niveau'] = niveau
myobjectif['active'] = '1'
myobjectif['date_update'] = str(now)

View File

@ -183,7 +183,7 @@ la clé est l'adresse email
def add_update_user_objectif():
# On recupere le corps (payload) de la requete
payload = request.form.to_dict()
print(" ### payload = ",payload)
print(" ### add_update_user_objectif payload = ",payload)
status, retval = eua.add_update_user_objectif(payload)
return jsonify(status=status, message=retval)