Explorar el Código

add SMS property to import

tripeur hace 2 años
padre
commit
cdaa357323
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/api/endpoints/project.py

+ 1 - 0
app/api/endpoints/project.py

@@ -125,6 +125,7 @@ async def update_project_from_gsheet(
             surname=row["Nom"],
             email=row["Mail"],
             phone_number=row["Tél"],
+            automatic_sms=row["SMS"] == "Oui",
         )
         volunteer_map[row.key] = volunteer
         session.add(volunteer)