|
|
@@ -111,6 +111,10 @@ async def update_project_from_gsheet(
|
|
|
if p is None:
|
|
|
raise HTTPException(status_code=404, detail="Project not found")
|
|
|
doc_id = extract_doc_uid(gsheet.sheet_url)
|
|
|
+ if gsheet.erase_data:
|
|
|
+ p.slots = []
|
|
|
+ p.sms = []
|
|
|
+ p.volunteers = []
|
|
|
df_contact, df_creneau, df_planning = parseGsheet(doc_id, gsheet.satursday_date)
|
|
|
# Create the volunteer list
|
|
|
volunteer_map: dict[str, Volunteer] = {}
|