25/01/23 - 20h

master
cherif 2023-01-25 20:27:52 +01:00
parent 7ff6f46cb0
commit 77e8be1c6e
7 changed files with 1242 additions and 92 deletions

View File

@ -1,10 +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="24/01/23 - 19h">
<list default="true" id="1122d9e2-679f-46d6-8c4f-97e9ae4041b5" name="Changes" comment="25/01/23 - 16h">
<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$/Emargement/fichier_presence.pdf" beforeDir="false" afterPath="$PROJECT_DIR$/Emargement/fichier_presence.pdf" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/Inscription_mgt.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$/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$/strype_payement.py" beforeDir="false" afterPath="$PROJECT_DIR$/strype_payement.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -225,7 +228,14 @@
<option name="project" value="LOCAL" />
<updated>1674299833664</updated>
</task>
<option name="localTasksCounter" value="23" />
<task id="LOCAL-00023" summary="25/01/23 - 16h">
<created>1674659827829</created>
<option name="number" value="00023" />
<option name="presentableId" value="LOCAL-00023" />
<option name="project" value="LOCAL" />
<updated>1674659827829</updated>
</task>
<option name="localTasksCounter" value="24" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -262,7 +272,8 @@
<MESSAGE value="19/01/23 - 20h" />
<MESSAGE value="21/01/23 - 12h" />
<MESSAGE value="24/01/23 - 19h" />
<option name="LAST_COMMIT_MESSAGE" value="24/01/23 - 19h" />
<MESSAGE value="25/01/23 - 16h" />
<option name="LAST_COMMIT_MESSAGE" value="25/01/23 - 16h" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>

File diff suppressed because one or more lines are too long

View File

@ -1187,19 +1187,72 @@ def PrintAttendeeDetail_perSession(diction):
my_retrun_dict['ville'] = local_Insc_retval['ville']
my_retrun_dict['code_postal'] = local_Insc_retval['code_postal']
my_retrun_dict['adresse'] = local_Insc_retval['adresse']
my_retrun_dict['nom'] = local_Insc_retval['nom']
my_retrun_dict['prenom'] = local_Insc_retval['prenom']
my_retrun_dict['employeur'] = local_Insc_retval['employeur']
my_retrun_dict['telephone'] = local_Insc_retval['telephone']
my_adresse = ""
if ("adresse" in diction.keys()):
if diction['adresse']:
my_adresse = local_Insc_retval['adresse']
my_retrun_dict['adresse'] = my_adresse
my_retrun_dict['email'] = local_Insc_retval['email']
my_retrun_dict['modefinancement'] = local_Insc_retval['modefinancement']
my_retrun_dict['opco'] = local_Insc_retval['opco']
my_retrun_dict['class_internal_url'] = local_Insc_retval['class_internal_url']
my_retrun_dict['status'] = local_Insc_retval['status']
my_nom = ""
if ("nom" in diction.keys()):
if diction['nom']:
my_adresse = local_Insc_retval['nom']
my_retrun_dict['nom'] = my_nom
my_prenom = ""
if ("prenom" in diction.keys()):
if diction['prenom']:
my_prenom = local_Insc_retval['prenom']
my_retrun_dict['prenom'] = my_prenom
my_employeur = ""
if ("employeur" in diction.keys()):
if diction['employeur']:
my_employeur = local_Insc_retval['employeur']
my_retrun_dict['employeur'] = my_employeur
my_telephone = ""
if ("telephone" in diction.keys()):
if diction['telephone']:
my_telephone = local_Insc_retval['telephone']
my_retrun_dict['telephone'] = my_telephone
my_email = ""
if ("email" in diction.keys()):
if diction['email']:
my_email = local_Insc_retval['email']
my_retrun_dict['email'] = my_email
my_modefinancement = ""
if ("modefinancement" in diction.keys()):
if diction['modefinancement']:
my_modefinancement = local_Insc_retval['modefinancement']
my_retrun_dict['modefinancement'] = my_modefinancement
my_opco = ""
if ("opco" in diction.keys()):
if diction['opco']:
my_opco = local_Insc_retval['opco']
my_retrun_dict['opco'] = my_opco
my_class_internal_url = ""
if ("class_internal_url" in diction.keys()):
if diction['class_internal_url']:
my_class_internal_url = local_Insc_retval['class_internal_url']
my_retrun_dict['class_internal_url'] = my_class_internal_url
my_status = ""
if ("status" in diction.keys()):
if diction['status']:
my_status = local_Insc_retval['status']
my_retrun_dict['status'] = my_status
my_price = ""
if ("price" in diction.keys()):
if diction['price']:
my_price = local_Insc_retval['price']
my_retrun_dict['price'] = my_price
my_retrun_dict['price'] = local_Insc_retval['price']
if ("inscription_validation_date" in local_Insc_retval.keys()):
my_retrun_dict['inscription_validation_date'] = local_Insc_retval['inscription_validation_date']
@ -1260,10 +1313,17 @@ def PrintAttendeeDetail_perSession(diction):
if tmp_val['presentiel']:
my_retrun_dict['presentiel'] = tmp_val['presentiel']
my_partner = ""
if ("institut_formation" in local_formation.keys()):
if local_formation['institut_formation']:
my_partner = local_formation['institut_formation']
my_retrun_dict['partner'] = my_partner
my_retrun_dict['partner'] = local_formation['institut_formation']
my_retrun_dict['img_url'] = local_formation['img_url']
my_img_url = ""
if ("img_url" in local_formation.keys()):
if local_formation['img_url']:
my_img_url = local_formation['img_url']
my_retrun_dict['img_url'] = my_img_url

File diff suppressed because one or more lines are too long

View File

@ -483,7 +483,7 @@ def add_class(diction):
else:
# Ce n'est pas un compte demo, il faut donc recuperer le display rank tu pack - part_pack
coll_pack = MYSY_GV.dbname['pack']
local_tmp = coll_pack.find({'code_pack': str(part_pack)})
local_tmp = coll_pack.find({'code_pack': str(part_pack).lower()})
if (local_tmp[0] and "ranking" in local_tmp[0].keys()):
if local_tmp[0]['ranking']:
@ -919,7 +919,7 @@ def update_class(diction):
coll_pack = MYSY_GV.dbname['pack']
local_tmp = coll_pack.find({'code_pack':str(part_pack)})
local_tmp = coll_pack.find({'code_pack':str(part_pack).lower()})
if (local_tmp[0] and "ranking" in local_tmp[0].keys()):
if local_tmp[0]['ranking']:

View File

@ -1,4 +1,3 @@
,index,mots,occurence,moyenne,id_formation,source_field
0,0,prise,1,0.33,GAF_10006,title
1,1,public,1,0.33,GAF_10006,title
2,2,parole,1,0.33,GAF_10006,title
0,0,management,1,0.5,MYSY_10022,title
1,1,fondamentau,1,0.5,MYSY_10022,title

1 index mots occurence moyenne id_formation source_field
2 0 0 prise management 1 0.33 0.5 GAF_10006 MYSY_10022 title
3 1 1 public fondamentau 1 0.33 0.5 GAF_10006 MYSY_10022 title
2 2 parole 1 0.33 GAF_10006 title

View File

@ -427,7 +427,7 @@ def payment_retrieve_status(diction):
now = datetime.now()
ret_val = local_coll_name.find_one_and_update({'token': token, 'active': '1', 'locked': '0', 'pack_service':''},
{"$set":
{"pack_service": str(packs),
{"pack_service": str(packs).lower(),
"date_update": str(now)}
},
upsert=False,