浏览代码

add SMS property to import

tripeur 2 年之前
父节点
当前提交
cdaa357323
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)