Browse Source

fix description import

tripeur 2 years ago
parent
commit
d48ec09841
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/api/endpoints/project.py

+ 3 - 2
app/api/endpoints/project.py

@@ -155,8 +155,9 @@ async def update_project_from_gsheet(
             if benevole_key in volunteer_map:
                 slot.volunteers.append(volunteer_map[benevole_key])
         # add detail information if available
-        if slot.title in creneau_names:
-            item = df_creneau[df_creneau.nom == slot.title].iloc[0]
+        description_id = group.description_id.iloc[0]
+        if description_id in creneau_names:
+            item = df_creneau[df_creneau.nom == description_id].iloc[0]
             slot.description = item.description
             slot.place = item.lieu
             slot.responsible_contact = item.responsable