From a1b80ede0ab67beb9ab5252064a6f3c4fb57c963 Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:28:42 -0700 Subject: [PATCH] Auto-update: Mon Oct 28 12:28:42 PDT 2024 --- sijapi/routers/timing.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sijapi/routers/timing.py b/sijapi/routers/timing.py index f8d72a6..e635f03 100644 --- a/sijapi/routers/timing.py +++ b/sijapi/routers/timing.py @@ -635,17 +635,6 @@ async def process_att_csv( # Load the phone lookup data from file cleaned_lookup = load_phone_lookup() - # Ensure the Phone Calls project exists - project_name = "📞 Phone Calls" # This is correct - try: - project_id = await ensure_project_exists(project_name) - except Exception as e: - l.error(f"Failed to ensure project exists: {e}") - raise HTTPException( - status_code=500, - detail=f"Failed to create or find project '{project_name}'" # Fixed error message - ) - # Read and process the CSV content = await file.read() content = content.decode('utf-8') @@ -698,7 +687,7 @@ async def process_att_csv( entry = { "start_date": dt.strftime("%Y-%m-%dT%H:%M:%S-07:00"), "end_date": end_dt.strftime("%Y-%m-%dT%H:%M:%S-07:00"), - "project_id": project_id, + "project": "📞 Phone Calls", "title": f"{row['Incoming/Outgoing']} - {contact_name}", "notes": f"Call via {row['Type']} from {row['Location']}", "replace_existing": False