23/05/23 - 23h

master
cherif 2023-05-23 22:08:04 +02:00
parent 2a81ab9ca6
commit c16640610e
2 changed files with 28 additions and 11 deletions

View File

@ -1,13 +1,8 @@
<?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="21/05/23 - 22h">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="22/05/23 - 23h">
<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$/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$/lms_chamilo/mysy_lms.py" beforeDir="false" afterPath="$PROJECT_DIR$/lms_chamilo/mysy_lms.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -233,7 +228,14 @@
<option name="project" value="LOCAL" />
<updated>1684699348108</updated>
</task>
<option name="localTasksCounter" value="25" />
<task id="LOCAL-00025" summary="22/05/23 - 23h">
<created>1684787274305</created>
<option name="number" value="00025" />
<option name="presentableId" value="LOCAL-00025" />
<option name="project" value="LOCAL" />
<updated>1684787274307</updated>
</task>
<option name="localTasksCounter" value="26" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -269,6 +271,7 @@
<MESSAGE value="15/05/23 - 23h" />
<MESSAGE value="21/05/23 - 10h" />
<MESSAGE value="21/05/23 - 22h" />
<option name="LAST_COMMIT_MESSAGE" value="21/05/23 - 22h" />
<MESSAGE value="22/05/23 - 23h" />
<option name="LAST_COMMIT_MESSAGE" value="22/05/23 - 23h" />
</component>
</project>

View File

@ -2810,7 +2810,7 @@ def Create_Class_From_Lms(diction):
# Ici on doit mettre tous les champs possible (obligatoire ou non) de la BDD dans la liste
# field_list.
'''
field_list = ['lms_mysy_recid', 'lms_class_code', 'lms_class_id']
field_list = ['lms_mysy_recid', 'lms_class_code', 'lms_class_id', 'lms_class_domaine']
incom_keys = diction.keys()
for val in incom_keys:
if val not in field_list:
@ -2844,6 +2844,12 @@ def Create_Class_From_Lms(diction):
if diction['lms_class_id']:
lms_class_id = diction['lms_class_id']
lms_class_domaine = ""
if ("lms_class_domaine" in diction.keys()):
if diction['lms_class_domaine']:
lms_class_domaine = diction['lms_class_domaine']
# Recuperation des données du partenaire
local_status, my_partner = mycommon.get_partner_data_from_recid(lms_mysy_recid)
if (local_status is False):
@ -2932,7 +2938,8 @@ def Create_Class_From_Lms(diction):
new_diction['price'] = "0"
new_diction['duration_unit'] = "user_rythme"
new_diction['duration'] = "0"
if( lms_class_domaine ):
new_diction['domaine'] = lms_class_domaine
class_internal_url = ""
@ -3071,7 +3078,7 @@ def Update_Class_From_Lms(diction):
# Ici on doit mettre tous les champs possible (obligatoire ou non) de la BDD dans la liste
# field_list.
'''
field_list = ['lms_mysy_recid', 'lms_class_code', 'lms_class_id']
field_list = ['lms_mysy_recid', 'lms_class_code', 'lms_class_id', 'lms_class_domaine']
incom_keys = diction.keys()
for val in incom_keys:
if val not in field_list:
@ -3105,6 +3112,11 @@ def Update_Class_From_Lms(diction):
if diction['lms_class_id']:
lms_class_id = diction['lms_class_id']
lms_class_domaine = ""
if ("lms_class_domaine" in diction.keys()):
if diction['lms_class_domaine']:
lms_class_domaine = diction['lms_class_domaine']
# Recuperation des données du partenaire
local_status, my_partner = mycommon.get_partner_data_from_recid(lms_mysy_recid)
if (local_status is False):
@ -3189,6 +3201,8 @@ def Update_Class_From_Lms(diction):
new_diction['presentiel'] = "0"
new_diction['published'] = "1"
if (lms_class_domaine):
new_diction['domaine'] = lms_class_domaine
class_internal_url = ""