Browse Source

add SMS property to import

tripeur 2 years ago
parent
commit
cdaa357323
1 changed files with 1 additions and 0 deletions
  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)