05/06/22 - 14h30
parent
f9f2b3b726
commit
af55e303ba
|
@ -878,7 +878,7 @@ def get_class(diction):
|
||||||
filt_title = {'title': {'$regex': str(diction['title'])}}
|
filt_title = {'title': {'$regex': str(diction['title'])}}
|
||||||
|
|
||||||
|
|
||||||
print(" #### avant requete get partner_owner_recid ="+str(user_recid)+
|
print(" #### avant requete get partner_owner_recid laa ="+str(user_recid)+
|
||||||
" internal_url = "+str(my_internal_url)+
|
" internal_url = "+str(my_internal_url)+
|
||||||
" filt_title = "+str(filt_title))
|
" filt_title = "+str(filt_title))
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,65 @@
|
||||||
,index,mots,occurence,moyenne,id_formation,source_field
|
,index,mots,occurence,moyenne,id_formation,source_field
|
||||||
0,0,ressource,1,0.06,"
|
0,0,optimiser,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
1,1,objectif,1,0.01,9065,default
|
||||||
-4",default
|
2,2,reassurance,1,0.01,9065,default
|
||||||
1,1,locau,1,0.06,"
|
3,3,mobile,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
4,4,moteur,1,0.01,9065,default
|
||||||
-4",default
|
5,5,fidelisation,1,0.01,9065,default
|
||||||
2,2,azure,3,0.18,"
|
6,6,accueil,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
7,7,commerciale,1,0.01,9065,default
|
||||||
-4",default
|
8,8,tunnel,1,0.01,9065,default
|
||||||
3,3,comment,1,0.06,"
|
9,9,produit,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
10,10,marchand,1,0.01,9065,default
|
||||||
-4",default
|
11,11,denouer,1,0.01,9065,default
|
||||||
4,4,decouvrez,1,0.06,"
|
12,12,commande,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
13,13,ligne,3,0.04,9065,default
|
||||||
-4",default
|
14,14,e,4,0.05,9065,default
|
||||||
5,5,securisee,1,0.06,"
|
15,15,moyen,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
16,16,different,1,0.01,9065,default
|
||||||
-4",default
|
17,17,sell,2,0.03,9065,default
|
||||||
6,6,connecter,1,0.06,"
|
18,18,vitrine,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
19,19,personnalisation,1,0.01,9065,default
|
||||||
-4",default
|
20,20,renforcement,1,0.01,9065,default
|
||||||
7,7,concevoir,2,0.12,"
|
21,21,site,2,0.03,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
22,22,suivre,1,0.01,9065,default
|
||||||
-4",default
|
23,23,semaine,2,0.03,9065,default
|
||||||
8,8,flexible,1,0.06,"
|
24,24,friction,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
25,25,autodiagnostic,1,0.01,9065,default
|
||||||
-4",default
|
26,26,pratique,1,0.01,9065,default
|
||||||
9,9,reseau,3,0.18,"
|
27,27,page,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
28,28,cros,1,0.01,9065,default
|
||||||
-4",default
|
29,29,navigation,2,0.03,9065,default
|
||||||
10,10,infrastructure,2,0.12,"
|
30,30,parcour,1,0.01,9065,default
|
||||||
concevoir-une-infrastructure-de-reseau-dans-azure
|
31,31,panier,1,0.01,9065,default
|
||||||
-4",default
|
32,32,marketing,1,0.01,9065,default
|
||||||
|
33,33,moment,1,0.01,9065,default
|
||||||
|
34,34,etape,1,0.01,9065,default
|
||||||
|
35,35,bonne,1,0.01,9065,default
|
||||||
|
36,36,merchandising,4,0.05,9065,default
|
||||||
|
37,37,kpi,1,0.01,9065,default
|
||||||
|
38,38,analyser,1,0.01,9065,default
|
||||||
|
39,39,vente,1,0.01,9065,default
|
||||||
|
40,40,liste,1,0.01,9065,default
|
||||||
|
41,41,offre,1,0.01,9065,default
|
||||||
|
42,42,strategie,1,0.01,9065,default
|
||||||
|
43,43,package,1,0.01,9065,default
|
||||||
|
44,44,defi,1,0.01,9065,default
|
||||||
|
45,45,calendrier,1,0.01,9065,default
|
||||||
|
46,46,mesurer,1,0.01,9065,default
|
||||||
|
47,47,programme,1,0.01,9065,default
|
||||||
|
48,48,off,1,0.01,9065,default
|
||||||
|
49,49,element,1,0.01,9065,default
|
||||||
|
50,50,version,1,0.01,9065,default
|
||||||
|
51,51,boutique,1,0.01,9065,default
|
||||||
|
52,52,developper,1,0.01,9065,default
|
||||||
|
53,53,promotion,1,0.01,9065,default
|
||||||
|
54,54,achat,1,0.01,9065,default
|
||||||
|
55,55,plan,1,0.01,9065,default
|
||||||
|
56,56,interne,1,0.01,9065,default
|
||||||
|
57,57,animation,1,0.01,9065,default
|
||||||
|
58,58,gerer,1,0.01,9065,default
|
||||||
|
59,59,type,1,0.01,9065,default
|
||||||
|
60,60,barre,1,0.01,9065,default
|
||||||
|
61,61,espace,1,0.01,9065,default
|
||||||
|
62,62,fiche,1,0.01,9065,default
|
||||||
|
63,63,recherche,1,0.01,9065,default
|
||||||
|
|
|
|
@ -519,7 +519,7 @@ def ela_recherche_tokens(sentence):
|
||||||
if( status is False):
|
if( status is False):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
#print(" VERIF APRES STEMISATION : " + str(tab_tokens4))
|
print(" VERIF APRES STEMISATION : " + str(tab_tokens4))
|
||||||
|
|
||||||
tab_tokens4.sort()
|
tab_tokens4.sort()
|
||||||
|
|
||||||
|
@ -532,14 +532,14 @@ def ela_recherche_tokens(sentence):
|
||||||
# collection
|
# collection
|
||||||
collection = MYSY_GV.dbname["elaindex"]
|
collection = MYSY_GV.dbname["elaindex"]
|
||||||
|
|
||||||
#print(" mot recherché tab_tokens4 (initialement) = "+str(tab_tokens4))
|
print(" mot recherché tab_tokens4 (initialement) = "+str(tab_tokens4))
|
||||||
|
|
||||||
status, new_tab_tokens4 = mysy_recherche_levenshtein(tab_tokens4)
|
status, new_tab_tokens4 = mysy_recherche_levenshtein(tab_tokens4)
|
||||||
if( status is False):
|
if( status is False):
|
||||||
mycommon.myprint(str(inspect.stack()[0][3]) + " Recherche : mysy_recherche_levenshtein return FALSE ")
|
mycommon.myprint(str(inspect.stack()[0][3]) + " Recherche : mysy_recherche_levenshtein return FALSE ")
|
||||||
return []
|
return []
|
||||||
|
|
||||||
#print(" ### les nouveaux mots recherchés new_tab_tokens4 = " + str(new_tab_tokens4))
|
print(" ### les nouveaux mots recherchés new_tab_tokens4 = " + str(new_tab_tokens4))
|
||||||
|
|
||||||
pipe2 = [{ '$match': { 'mots': { '$in': new_tab_tokens4 } } },
|
pipe2 = [{ '$match': { 'mots': { '$in': new_tab_tokens4 } } },
|
||||||
{ '$group': {
|
{ '$group': {
|
||||||
|
@ -617,15 +617,15 @@ def mysy_recherche_levenshtein(tab_mot):
|
||||||
cmp_levenshtein = int(mycommon.levenshtein(mot, str(x['mots'])))
|
cmp_levenshtein = int(mycommon.levenshtein(mot, str(x['mots'])))
|
||||||
#print(" check ### ="+str(x['mots']))
|
#print(" check ### ="+str(x['mots']))
|
||||||
|
|
||||||
if( len(mot) <= 5 and cmp_levenshtein <= 1):
|
if( len(mot) <= 5 and cmp_levenshtein <= 0):
|
||||||
if( str(x['mots']) not in training_mots):
|
if( str(x['mots']) not in training_mots):
|
||||||
training_mots.append( str(x['mots']) )
|
training_mots.append( str(x['mots']) )
|
||||||
|
|
||||||
elif( len(mot) <= 10 and cmp_levenshtein <= 2):
|
elif( len(mot) <= 10 and cmp_levenshtein <= 0):
|
||||||
if( str(x['mots']) not in training_mots):
|
if( str(x['mots']) not in training_mots):
|
||||||
training_mots.append( str(x['mots']) )
|
training_mots.append( str(x['mots']) )
|
||||||
|
|
||||||
elif ( cmp_levenshtein <= 3):
|
elif ( cmp_levenshtein <= 0):
|
||||||
if (str(x['mots']) not in training_mots):
|
if (str(x['mots']) not in training_mots):
|
||||||
training_mots.append(str(x['mots']))
|
training_mots.append(str(x['mots']))
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
mots ... source_field
|
mots occurence moyenne id_formation source_field
|
||||||
0 ressource ... default
|
0 optimiser 1 0.01 9065 default
|
||||||
1 locau ... default
|
1 objectif 1 0.01 9065 default
|
||||||
2 azure ... default
|
2 reassurance 1 0.01 9065 default
|
||||||
3 comment ... default
|
3 mobile 1 0.01 9065 default
|
||||||
4 decouvrez ... default
|
4 moteur 1 0.01 9065 default
|
||||||
5 securisee ... default
|
.. ... ... ... ... ...
|
||||||
6 connecter ... default
|
59 type 1 0.01 9065 default
|
||||||
7 concevoir ... default
|
60 barre 1 0.01 9065 default
|
||||||
8 flexible ... default
|
61 espace 1 0.01 9065 default
|
||||||
9 reseau ... default
|
62 fiche 1 0.01 9065 default
|
||||||
10 infrastructure ... default
|
63 recherche 1 0.01 9065 default
|
||||||
|
|
||||||
[11 rows x 5 columns]
|
[64 rows x 5 columns]
|
|
@ -427,7 +427,7 @@ def valide_user_account(value):
|
||||||
|
|
||||||
if( ret_val and ret_val['_id']):
|
if( ret_val and ret_val['_id']):
|
||||||
mycommon.myprint("La modif a bien ete faite ="+str(ret_val['_id']))
|
mycommon.myprint("La modif a bien ete faite ="+str(ret_val['_id']))
|
||||||
return True," Le compte a bien été validé >"
|
return True," Le compte a bien été validé "
|
||||||
else:
|
else:
|
||||||
mycommon.myprint(" Impossible de valider le compte")
|
mycommon.myprint(" Impossible de valider le compte")
|
||||||
return False, " Impossible de valider le compte utilisateur"
|
return False, " Impossible de valider le compte utilisateur"
|
||||||
|
|
|
@ -70,10 +70,7 @@ def send_user_account_mail(message, account_mail):
|
||||||
</font>
|
</font>
|
||||||
<br/>
|
<br/>
|
||||||
<b>
|
<b>
|
||||||
<a href="http://127.0.0.1:5000/myclass/api/valide_user_account/{objId}" target="_blank" style="font-size:0.5rem;" >
|
|
||||||
CLIQUEZ ICI ==> LOCALHOST
|
|
||||||
</b>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<p>Cordialement<br>
|
<p>Cordialement<br>
|
||||||
L'equipe informatique de MySy
|
L'equipe informatique de MySy
|
||||||
|
|
|
@ -806,7 +806,9 @@ def FormationAlaUne():
|
||||||
try:
|
try:
|
||||||
|
|
||||||
coll_name = MYSY_GV.dbname['myclass']
|
coll_name = MYSY_GV.dbname['myclass']
|
||||||
df = pd.DataFrame(list(coll_name.find({'valide':'1', "price": {"$gte": 0} },{'_id':1, 'external_code':1 })))
|
df = pd.DataFrame(list(coll_name.find({'valide':'1', "price": {"$gte": 0}, "duration": {"$gte": 0},
|
||||||
|
"support" : { "$exists" : "true" },
|
||||||
|
"type" : { "$exists" : "true" } },{'_id':1, 'external_code':1 })))
|
||||||
df['isalaune'] = '0'
|
df['isalaune'] = '0'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -320,8 +320,8 @@ def recherche_text_simple(diction):
|
||||||
|
|
||||||
cleaned_search_text = mycommon.Parse_Clean_Search_Text(search_text)
|
cleaned_search_text = mycommon.Parse_Clean_Search_Text(search_text)
|
||||||
|
|
||||||
#print(" NOT CLEANED search_text = " + str(search_text))
|
print(" NOT CLEANED search_text = " + str(search_text))
|
||||||
#print(" CLEANED search_text = "+str(cleaned_search_text))
|
print(" CLEANED search_text = "+str(cleaned_search_text))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -461,8 +461,8 @@ def recherche_text_simple(diction):
|
||||||
'''
|
'''
|
||||||
pour analyser la recherche, decommenter les 2 lignes ci-dessous
|
pour analyser la recherche, decommenter les 2 lignes ci-dessous
|
||||||
'''
|
'''
|
||||||
#mycommon.myprint(" pour phrase : #" + search_text + "#, voici la liste des formations")
|
mycommon.myprint(" pour phrase : #" + search_text + "#, voici la liste des formations")
|
||||||
#mycommon.myprint(tab_training)
|
mycommon.myprint(tab_training)
|
||||||
|
|
||||||
|
|
||||||
coll_name = MYSY_GV.dbname['myclass']
|
coll_name = MYSY_GV.dbname['myclass']
|
||||||
|
|
Loading…
Reference in New Issue