From 773924213695f1430da4189a6dcba4c6ac5710cd Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Wed, 6 Mar 2024 11:28:24 +0100 Subject: [PATCH] fix: add docs to CSV date column name --- src/sync_csv.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sync_csv.rs b/src/sync_csv.rs index de550f7..5cdec2c 100644 --- a/src/sync_csv.rs +++ b/src/sync_csv.rs @@ -4,7 +4,7 @@ use crate::{ }; use anyhow::Result; -use crate::utils::{parse_datetime_american, normalize_str, parse_normalize_phone}; +use crate::utils::{normalize_str, parse_datetime_american, parse_normalize_phone}; use crate::sync_paheko::{GeneralizedAnswer, sync_paheko}; use email_address::EmailAddress; use chrono::prelude::Datelike; @@ -42,7 +42,7 @@ pub async fn sync_csv( // raw row record directly from CSV #[derive(Debug, serde::Deserialize)] struct AnswerRecord { - #[serde(rename = "Date")] + #[serde(rename = "Date (MM/JJ/AAAA)")] date: String, #[serde(rename = "Email acheteur")] email: String,