Pārlūkot izejas kodu

add SMS property to import

tripeur 2 gadi atpakaļ
vecāks
revīzija
cdaa357323
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)